Checkpoint#
A user may request periodic dumps of checkpoint data in the “checkpoint” sublist. The user has no explicit control over the content of these files, but has the guarantee that the run can be continued perfectly from that file, in the sense that a simulation started from a checkpoint file will have the bitwise same solution as if the run was continued without stopping. Unlike “visualization”, there is only one “checkpoint” list for all domains/meshes.
checkpoint-spec
“file name base”
[string]
“checkpoint”“file name digits”
[int]
5“single file checkpoint”
[bool]
true If true, writes all checkpoint to one file. If false, uses a subdirectory with one file per mesh. false is required if meshes exist on other communicators than MPI_COMM_WORLD, but this is toggled automatically if the code detects that this is necessary.
INCLUDES:
[io-event-spec]
An IOEvent spec.
Example:
<ParameterList name="checkpoint">
<Parameter name="cycles start period stop" type="Array(int)" value="{0, 100, -1}" />
<Parameter name="cycles" type="Array(int)" value="{999, 1001}" />
<Parameter name="times start period stop 0" type="Array(double)" value="{0.0, 10.0, 100.0}"/>
<Parameter name="times start period stop 1" type="Array(double)" value="{100.0, 25.0, -1.0}"/>
<Parameter name="times" type="Array(double)" value="{101.0, 303.0, 422.0}"/>
</ParameterList>
In this example, checkpoint files are written when the cycle number is a multiple of 100, every 10 seconds for the first 100 seconds, and every 25 seconds thereafter, along with times 101, 303, and 422. Files will be written in the form: “checkpoint00000.h5”.