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:
parent
5f2a0c763e
commit
bb4682fafa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user