Value:
{ \ const auto it = MAP.find(#VAR); \ if(it!=MAP.end()) { \ VAR = it->second; \ } \ else \ SETERRQ2(PETSC_COMM_SELF,1,"Key %s not found in %s",#VAR,#MAP); \ } Assign a value into key-variable and throw a proper PETSc error when lookup fails. Definition at line 56 of file DMRGBlockContainer.hpp. Referenced by DMRGBlockContainer< Block, Hamiltonian >::Initialize(). |