diff --git a/src/aiida_quantumespresso_hp/workflows/hubbard.py b/src/aiida_quantumespresso_hp/workflows/hubbard.py index 60123a8..533beb7 100644 --- a/src/aiida_quantumespresso_hp/workflows/hubbard.py +++ b/src/aiida_quantumespresso_hp/workflows/hubbard.py @@ -606,7 +606,7 @@ def check_convergence(self): self.ctx.current_hubbard_structure = result['hubbard_structure'] if self.ctx.current_magnetic_moments is not None: self.ctx.current_magnetic_moments = result['starting_magnetization'] - break + break if not len(ref_params) == len(new_params): self.report('The new and old Hubbard parameters have different lenghts. Assuming to be at the first cycle.')