3
0
mirror of https://github.com/triqs/dft_tools synced 2024-06-16 10:15:31 +02:00

Use rotloc matrix in add_dc only when use_rotations is True (Issue #190)

This commit is contained in:
Hermann Schnait 2022-03-07 16:40:08 +01:00 committed by Alexander Hampel
parent c4db7e6867
commit 9bac476c5f

View File

@ -1801,8 +1801,12 @@ class SumkDFT(object):
for icrsh in range(self.n_corr_shells): for icrsh in range(self.n_corr_shells):
for bname, gf in sigma_minus_dc[icrsh]: for bname, gf in sigma_minus_dc[icrsh]:
# Transform dc_imp to global coordinate system # Transform dc_imp to global coordinate system
dccont = numpy.dot(self.rot_mat[icrsh], numpy.dot(self.dc_imp[icrsh][ if self.use_rotations:
bname], self.rot_mat[icrsh].conjugate().transpose())) 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 sigma_minus_dc[icrsh][bname] -= dccont
return sigma_minus_dc return sigma_minus_dc