3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-21 11:53:41 +01:00

bugfix: blocks get added twice

Whenever both G and G^T support a symmetry,
the block is added twice. This commit prevents that...
This commit is contained in:
Gernot J. Kraberger 2018-03-30 15:46:40 +02:00
parent 2c6149228a
commit 086573950b

View File

@ -1251,6 +1251,10 @@ class SumkDFT(object):
d[block2] = T, False d[block2] = T, False
self.deg_shells[ish].append(d) self.deg_shells[ish].append(d)
# a block was found, break out of the loop
break
def density_matrix(self, method='using_gf', beta=40.0): def density_matrix(self, method='using_gf', beta=40.0):
"""Calculate density matrices in one of two ways. """Calculate density matrices in one of two ways.