Distribute projections after reading

parent 99424582
Pipeline #107756526 failed with stage
in 3 minutes and 4 seconds
......@@ -244,6 +244,9 @@ class GPAW(PAW, Calculator):
for obj in [self.density, self.hamiltonian]:
obj.set_positions_without_ruining_everything(self.spos_ac,
new_atom_partition)
for kpt in self.wfs.mykpts:
kpt.projections = kpt.projections.redist(new_atom_partition)
self.wfs.atom_partition = new_atom_partition
self.hamiltonian.xc.read(reader)
......
......@@ -214,6 +214,7 @@ class Density:
def update_atomic_density_matrices(self, value):
if isinstance(value, dict):
asdfhjg
tmp = self.setups.empty_atomic_matrix(self.ncomponents,
self.atom_partition)
tmp.update(value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment