Skip to content

Commit

Permalink
Merge pull request #1493 from pyiron/convergence_check
Browse files Browse the repository at this point in the history
Add convergence_check() to calculate function
  • Loading branch information
jan-janssen committed Jun 21, 2024
2 parents 32956d8 + 2458503 commit b4ecd38
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pyiron_base/jobs/job/runfunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,8 +984,13 @@ def execute_job_with_calculate_function(job):
job.status.aborted = True
job._hdf5["status"] = job.status.string
else:
job.status.finished = True
job.save_output(output_dict=parsed_output, shell_output=shell_output)
if not job.convergence_check():
job.status.not_converged = True
else:
if job._compress_by_default:
job.compress()
job.status.finished = True


def _generate_flux_execute_string(job, database_is_disabled):
Expand Down

0 comments on commit b4ecd38

Please sign in to comment.