I am running CS v4.0.5.
I want to restart my simulation from the last saved time step, as I am running on an HPC with time limits. Lets assume that the run which I want to resume from is called "init_01" then I would do something like this in DATA/cs_user_scripts.py:
Code: Select all
if domain.param == None:
domain.mesh_input = "RESU/init_01/mesh_input"
domain.partition_input = None
domain.restart_input = "RESU/init_01/checkpoint"
Is there a way to continue the simulation from the last time step that is contained in my init_01 despite this, so that I don't have to start over? What is the best practice for ensuring that you have a restart point in a simulation? I know that I could for instance save the following to a file called control_file in the result directory during runtime, but this seems a bit tedious and may be easy to forget to do...
Code: Select all
checkpoint_wall_time_interval <wall time interval>