mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 20:34:38 +01:00
Use rotloc matrix in add_dc only when use_rotations is True (Issue #190)
This commit is contained in:
parent
c4db7e6867
commit
9bac476c5f
@ -1801,8 +1801,12 @@ class SumkDFT(object):
|
||||
for icrsh in range(self.n_corr_shells):
|
||||
for bname, gf in sigma_minus_dc[icrsh]:
|
||||
# Transform dc_imp to global coordinate system
|
||||
dccont = numpy.dot(self.rot_mat[icrsh], numpy.dot(self.dc_imp[icrsh][
|
||||
bname], self.rot_mat[icrsh].conjugate().transpose()))
|
||||
if self.use_rotations:
|
||||
dccont = numpy.dot(self.rot_mat[icrsh], numpy.dot(self.dc_imp[icrsh][
|
||||
bname], self.rot_mat[icrsh].conjugate().transpose()))
|
||||
else:
|
||||
dccont = self.dc_imp[icrsh][bname]
|
||||
|
||||
sigma_minus_dc[icrsh][bname] -= dccont
|
||||
|
||||
return sigma_minus_dc
|
||||
|
Loading…
Reference in New Issue
Block a user