Skip to content

Commit

Permalink
fix lowdin downfolding error
Browse files Browse the repository at this point in the history
  • Loading branch information
mailhexu committed Jun 20, 2024
1 parent d0c4047 commit bb0c656
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions TB2J/Jdownfolder.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_JR(self):
for iR, R in enumerate(self.Rlist):
phase = np.exp(-2.0j * np.pi * np.dot(q, R))
JR_downfolded[iR] += np.real(Jq_downfolded[iq] * phase / self.nqpt)
return JR_downfolded
return JR_downfolded, self.Rlist

def downfold_oneq(self, J):
JMM = J[np.ix_(self.iMn, self.iMn)]
Expand Down Expand Up @@ -120,7 +120,6 @@ def __init__(self, JR, Rlist, iM, iL, qmesh, atoms=None, iso_only=False, **kwarg
)
self.JR_downfolded = ewf.HwannR
self.Rlist = ewf.Rlist
print("downfolded JR shape", self.JR_downfolded.shape)

def get_JR(self):
return self.JR_downfolded, self.Rlist
Expand Down

0 comments on commit bb0c656

Please sign in to comment.