Auxiliary procedures
- edipy2.global_env.check_convergence(func, threshold, N1=None, N2=None)
This function checks the variation of a given quantity (Weiss field, Delta, …) against the one for the previous step. It is used to determined whether the DMFT loop has converged. If a maximum number of loops is exceeded, returns True with a warning.
- Parameters:
- Returns:
the error
a boolean signifying convergence
- Return type:
- edipy2.global_env.get_bath_type()
This function returns an integer number related to the value of
bath_type
in the input file1
for normal bath2
for hybrid bath3
for replica bath4
for general bath
- Returns:
the integer index
- Return type:
- edipy2.global_env.get_ed_mode()
This function returns an integer number related to the value of
ed_mode
in the input file1
for normal mode2
for superc mode3
for nonsu2 mode
- Returns:
the integer index
- Return type:
- edipy2.global_env.search_variable(var, ntmp, converged)
This function checks the value of the read density
ntmp
against the desired valuenread
(if different from zero) and adjustsvar
accordingly (in a monotonous way).- Parameters:
- Returns:
the new value of
var
a boolean signifying convergence
- Return type: