triqs_dft_tools.block_structure.BlockStructure.convert_gf
- BlockStructure.convert_gf(G, G_struct=None, ish_from=0, ish_to=None, show_warnings=True, G_out=None, space_from='solver', space_to='solver', ish=None, **kwargs)[source]
Convert BlockGf from its structure to this structure.
Warning
Elements that are zero in the new structure due to the new block structure will be just ignored, thus approximated to zero.
- Parameters:
G : BlockGf
the Gf that should be converted
G_struct : BlockStructure or str
the structure of that G or None (then, this structure is used)
ish_from : int
shell index of the input structure
ish_to : int
shell index of the output structure; if None (the default), it is the same as ish_from
show_warnings : bool or float
whether to show warnings when elements of the Green’s function get thrown away if float, set the threshold for the magnitude of an element about to be thrown away to trigger a warning (default: 1.e-10)
G_out : BlockGf
the output Green’s function (if not given, a new one is created)
space_from : ‘solver’ or ‘sumk’
whether the Green’s function
G
corresponds to the solver or sumk structure ofG_struct
space_to : ‘solver’ or ‘sumk’
whether the output Green’s function should be according to the solver of sumk structure of this structure
**kwargs : :
options passed to the constructor for the new Gf