3
0
mirror of https://github.com/triqs/dft_tools synced 2024-07-11 05:43:48 +02:00

use mesh from Sigma instead of Sumk in lattice_gf

This commit is contained in:
Jonathan Karp 2021-09-23 13:44:50 -04:00 committed by Alexander Hampel
parent 1e7c66805f
commit fc893a0f48

View File

@ -543,12 +543,12 @@ class SumkDFT(object):
sigma_minus_dc = [s.copy() for s in Sigma_imp] sigma_minus_dc = [s.copy() for s in Sigma_imp]
if with_dc: if with_dc:
sigma_minus_dc = self.add_dc() sigma_minus_dc = self.add_dc()
if isinstance(self.mesh, MeshReFreq) and broadening > 0 and mpi.is_master_node(): mesh = Sigma_imp[0].mesh
if isinstance(mesh, MeshReFreq) and broadening > 0 and mpi.is_master_node():
warn('lattice_gf called with Sigma and broadening > 0 (broadening = {}). You might want to explicitly set the broadening to 0.'.format(broadening)) warn('lattice_gf called with Sigma and broadening > 0 (broadening = {}). You might want to explicitly set the broadening to 0.'.format(broadening))
elif not mesh is None: elif not mesh is None:
mesh = MeshReFreq(mesh[0], mesh[1], mesh[2]) mesh = MeshReFreq(mesh[0], mesh[1], mesh[2])
else:
if mesh is None:
mesh = self.mesh mesh = self.mesh
# Set up G_latt # Set up G_latt