diff --git a/doc/RTD/source/ParameterFiles/parameter_description.rst b/doc/RTD/source/ParameterFiles/parameter_description.rst index 8965e67ee59213f9047d54e10e4ae01cce7e0527..0454d30a6139a9b43b09908b7ba44155d37f11b4 100644 --- a/doc/RTD/source/ParameterFiles/parameter_description.rst +++ b/doc/RTD/source/ParameterFiles/parameter_description.rst @@ -557,10 +557,10 @@ other options require the ``enable`` parameter to be set to ``1``. * Whether or not to dump a set of restart file on regular exit: ``onexit`` (default: ``0``), * The wall-clock time in hours between two sets of restart files: - ``delta_hours`` (default: ``6.0``). + ``delta_hours`` (default: ``5.0``). Note that there is no buffer time added to the ``delta_hours`` value. If the -system's batch queue run time limit is set to 6 hours, the user must specify a +system's batch queue run time limit is set to 5 hours, the user must specify a smaller value to allow for enough time to safely dump the check-point files. * The sub-directory in which to store the restart files: ``subdir`` (default: @@ -613,7 +613,7 @@ hours after which a shell command will be run, one would use: onexit: 0 subdir: restart # Sub-directory of the directory where SWIFT is run basename: swift - delta_hours: 6.0 + delta_hours: 5.0 stop_steps: 100 max_run_time: 24.0 # In hours resubmit_on_exit: 1 diff --git a/examples/parameter_example.yml b/examples/parameter_example.yml index 6bcdbf23406682f25898f33e99e4fa6e5c51ea9d..996e35e41a3a6090a11ecf30a9decb391865ed63 100644 --- a/examples/parameter_example.yml +++ b/examples/parameter_example.yml @@ -157,7 +157,7 @@ Restarts: onexit: 0 # (Optional) whether to dump restarts on exit (*needs enable*) subdir: restart # (Optional) name of subdirectory for restart files. basename: swift # (Optional) prefix used in naming restart files. - delta_hours: 6.0 # (Optional) decimal hours between dumps of restart files. + delta_hours: 5.0 # (Optional) decimal hours between dumps of restart files. stop_steps: 100 # (Optional) how many steps to process before checking if the <subdir>/stop file exists. When present the application will attempt to exit early, dumping restart files first. max_run_time: 24.0 # (optional) Maximal wall-clock time in hours. The application will exit when this limit is reached. resubmit_on_exit: 0 # (Optional) whether to run a command when exiting after the time limit has been reached. diff --git a/src/engine.c b/src/engine.c index a42ead2d878f102dadaa925510f41296e48dde69..9e8ae1104cbdeef9ded2bc5aa31e377db0c8a709 100644 --- a/src/engine.c +++ b/src/engine.c @@ -5545,7 +5545,7 @@ void engine_config(int restart, int fof, struct engine *e, /* Hours between restart dumps. Can be changed on restart. */ float dhours = - parser_get_opt_param_float(params, "Restarts:delta_hours", 6.0); + parser_get_opt_param_float(params, "Restarts:delta_hours", 5.0f); if (e->nodeID == 0) { if (e->restart_dump) message("Restarts will be dumped every %f hours", dhours);