Before each time step COBOLD checks in the working directory
whether the file
If it has been generated (e.g. with
the code exits gracefully, i.e. it produces a
proper final model, which can be used to restart the code.
This method of stopping a simulation is to be preferred over
qdel command because it allows
to analyze the state of the model just at the end of the simulation
and a smooth restart.
Before the restart the
rhd.stop file has to be deleted!
The simulation can be continued by just initiating a new run.
If the file
rhd.cont exists at the beginning of a
simulation, the code tries to resume an interrupted computation:
The initial model will not be taken from the start model file
infile_start) but from the final model (
The data for the full and the mean file is not written into new files
but will be appended to the existing ones.
In this way a simulation can be interrupted and continued in a fairly
safe way. It is possible to analyze the final model and to changes
values in the parameter file.
Keep in mind that after a restart with
rhd.cont the specifications
about the length of the job (e.g. the number of time steps) will be
counted from the restart point and not from the beginning of the original
To interrupt a job with
rhd.stop can be very handy.
The continuation with
rhd.cont and the old parameter file
is not to be preferred over an ordinary restart with a new parameter file.