3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-09 07:33:47 +01:00

Bugfixes in blockstructure.py for the case of #corr_shells != #ineq_shells

This commit is contained in:
hschnait 2021-08-30 14:14:11 +02:00
parent 8bcb6f3391
commit 2d3dcb3398

View File

@ -416,8 +416,12 @@ class BlockStructure(object):
new_gf_struct[ish][block]=list of indices in that block. new_gf_struct[ish][block]=list of indices in that block.
""" """
assert len(self.gf_struct_solver) == len(new_gf_struct),\
"new_gf_struct has the wrong length"
for ish in range(len(self.gf_struct_solver)): for ish in range(len(self.gf_struct_solver)):
gf_struct = new_gf_struct[ish] gf_struct = new_gf_struct[ish].copy()
# create new solver_to_sumk # create new solver_to_sumk
so2su = {} so2su = {}
@ -507,7 +511,7 @@ class BlockStructure(object):
""" """
eff_trans_sumk = self.effective_transformation_sumk eff_trans_sumk = self.effective_transformation_sumk
assert len(eff_trans_sumk) == len(new_gf_struct),\ assert len(self.gf_struct_solver) == len(new_gf_struct),\
"new_gf_struct has the wrong length" "new_gf_struct has the wrong length"
new_gf_struct_transformed = copy.deepcopy(new_gf_struct) new_gf_struct_transformed = copy.deepcopy(new_gf_struct)