Skip to content

Commit

Permalink
[gw] fix optional SigmaH and SigmaF in rf calc
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoStrand committed Jan 25, 2024
1 parent a0c8b20 commit 16277e8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/triqs_tprf/gw_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,13 @@ def calc_real_freq(self, fmesh, fbmesh=None, opts=dict()):
V_k = self.V_k,
g0_fk = self.g0_fk,
g_fk = self.g_fk,
sigma_hartree_k = self.sigma_hartree_k,
sigma_fock_k = self.sigma_fock_k,
)

if hasattr(self, 'sigma_hartree_k'):
gw_rf.sigma_hartree_k = self.sigma_hartree_k
if hasattr(self, 'sigma_fock_k'):
gw_rf.sigma_fock_k = self.sigma_fock_k

if fbmesh is None:
fbmesh = fmesh

Expand Down

0 comments on commit 16277e8

Please sign in to comment.