gftool.check_convergence
- gftool.check_convergence(gf_iw, potential, beta, order=2, matrix=False, total=False)[source]
Return data for visual inspection of the density error.
The calculation of the density error assumes that sufficient Matsubara frequencies were used. Sufficient means here, that the reminder \(ΔG\) does not grow anymore. If the error estimate is small, but
check_convergence
returns rapidly growing data, the number of Matsubara frequencies is not sufficientSee
density
for parameters.- Returns:
- float ndarray
The last dimension of
check_convergence
corresponds to the Matsubara frequencies.
- Other Parameters:
- orderint
The assumed order of the first non-vanishing term of the Laurent expansion.