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
1 changed files with 4 additions and 0 deletions

View File

@ -1251,6 +1251,10 @@ class SumkDFT(object):
d[block2] = T, False
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):
"""Calculate density matrices in one of two ways.