3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-22 20:34:38 +01:00

warning in extract_G_loc if SumkDFT and Sigma have different mesh

This commit is contained in:
Jonathan Karp 2021-10-05 15:09:52 -04:00 committed by Alexander Hampel
parent 5f2a0c763e
commit bb4682fafa

View File

@ -730,7 +730,15 @@ class SumkDFT(object):
if mu is None:
mu = self.chemical_potential
if isinstance(self.mesh, MeshImFreq):
if with_Sigma:
mesh = self.Sigma_imp[0].mesh
if mesh != self.mesh:
warn('self.mesh and self.Sigma_imp[0].mesh are differen! Using mesh from Sigma')
else:
mesh = self.mesh
if isinstance(mesh, MeshImFreq):
G_loc = [self.Sigma_imp[icrsh].copy() for icrsh in range(
self.n_corr_shells)] # this list will be returned
beta = G_loc[0].mesh.beta