triqs_dft_tools.block_structure.BlockStructure.check_gf

BlockStructure.check_gf(G, ish=None, space='solver')[source]

check whether the Green’s function G has the right structure

This throws an error if the structure of G is not the same as gf_struct_solver (for space=solver) or gf_struct_sumk (for space=sumk)..

Parameters:
GBlockGf or list of BlockGf

Green’s function to check if it is a list, there should be as many entries as there are shells, and the check is performed for all shells (unless ish is given).

ishint

shell index default: 0 if G is just one Green’s function is given, check all if list of Green’s functions is given

space‘solver’ or ‘sumk’

which space the structure should correspond to