Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
cpignedoli committed Jan 27, 2025
1 parent bd9a8d2 commit 9fcc528
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion aiida_cp2k/calculations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def define(cls, spec):
spec.exit_code(
450,
"ERROR_SCF_NOT_CONVERGED",
message="SCF cycle did not converge for thegiven threshold.",
message="SCF cycle did not converge for the given threshold.",
)
spec.exit_code(
500,
Expand Down
2 changes: 2 additions & 0 deletions aiida_cp2k/workchains/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ def restart_incomplete_calculation(self, calc):
is_geo_opt = params.get_dict().get("GLOBAL", {}).get("RUN_TYPE") == "GEO_OPT"
if ignore_convergence_failure and not bad_scf_gradient and not walltime_exceeded and is_geo_opt:
# add ignore_convergence_failure to the input parameters
# still in the output a WARNING for SCF convergence failure will be present in case SCF does not converge thus, if GEO_OPT is completed
# but SCF not converged the SCF not converged (ABORT will be absent) will trigger one resubmission
self.report("The SCF was not converged, but the SCF gradient is small and we are doing GEO_OPT. Adding IGNORE_CONVERGENCE_FAILURE.")
params = utils.add_ignore_convergence_failure(params)

Expand Down

0 comments on commit 9fcc528

Please sign in to comment.