Restart a simulation without checkpoint directory
Posted: Thu Sep 22, 2016 4:17 pm
Hello,
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:
However I have no directory called "checkpoint" in the init_01 directory. Presumably I have forgotten to specify that I want it somewhere in the source code...
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...
Edit: I forgot to mention that I also know of the fact that setting ntsuit > 0 in cs_user_parameters.f90 is the way to go about saving checkpoint files, however I clearly forgot to do this...
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>