Fixed bug in lattice gf that appeared when dc was not used

This commit is contained in:
Priyanka Seth 2015-04-15 09:48:31 +02:00
parent 87523ef231
commit a2dae173cf
1 changed files with 2 additions and 1 deletions

View File

@ -259,8 +259,9 @@ class SumkDFT:
# Are we including Sigma?
if with_Sigma:
if with_dc: sigma_minus_dc = self.add_dc(iw_or_w)
Sigma_imp = getattr(self,"Sigma_imp_"+iw_or_w)
sigma_minus_dc = Sigma_imp.copy()
if with_dc: sigma_minus_dc = self.add_dc(iw_or_w)
if iw_or_w == "iw":
beta = Sigma_imp[0].mesh.beta # override beta if Sigma_iw is present
n_iw = len(Sigma_imp[0].mesh)