Skip to content

Commit

Permalink
πŸ‘Œ Fix error message for ERROR_CHARGE_IS_WRONG
Browse files Browse the repository at this point in the history
Fix the copy-paste error and add a proper error message for the
`ERROR_CHARGE_IS_WRONG` exit code.
  • Loading branch information
t-reents committed Feb 4, 2025
1 parent c1aa823 commit 12bb2a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/aiida_quantumespresso/calculations/pw.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ def define(cls, spec):
'BFGS algorithm and electronic convergence failed in the final SCF.')

spec.exit_code(531, 'ERROR_CHARGE_IS_WRONG',
message='The electronic minimization cycle did not reach self-consistency.')
message='The difference between the total charge and the number of electrons exceeds the threshold. '
'Smearing might be required, check the output file for details.'
)
spec.exit_code(541, 'ERROR_SYMMETRY_NON_ORTHOGONAL_OPERATION',
message='The variable cell optimization broke the symmetry of the k-points.')
spec.exit_code(542, 'ERROR_RADIAL_FFT_SIGNIFICANT_VOLUME_CONTRACTION',
Expand Down

0 comments on commit 12bb2a7

Please sign in to comment.