Skip to content

Cleanly abort simulation on presence of an abort file.

Chris Cantwell requested to merge ticket/47-abort-file into master

This MR adds support for detecting the presence of an 'abort' file which can be used to trigger a clean termination of the simulation.

The name of the support file can be set using the solver info 'CheckAbortFile', while the frequency of the checks set using the 'CheckAbortSteps' parameter. This check is coupled to the NaN checker and 'CheckAbortSteps' replaces the previous 'CheckNanSteps'. Both abort file and NaNs are checked for at the same time and utilise the same MPI reduction.

This MR closes #47 (closed) .

Edited by Chris Cantwell

Merge request reports