mirror of
https://github.com/triqs/dft_tools
synced 2024-09-12 05:38:31 +02: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 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
|
||||||
|
Loading…
Reference in New Issue
Block a user