#define ASSIGN_VAR (   MAP,
  VAR 
)
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().

This site was generated by Sphinx using Doxygen with a customized theme from doxygen-bootstrapped.