Skip to content
Snippets Groups Projects
Commit 8c7c9241 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Read the resubmission command from the YAML file.

parent 633205b7
No related branches found
No related tags found
1 merge request!643Runtime limit and resubmission command
......@@ -607,7 +607,8 @@ int main(int argc, char *argv[]) {
/* What command should we run to resubmit at the end? */
char resubmit_command[PARSER_MAX_LINE_SIZE];
if (resubmit_after_max_hours)
parser_get_param_string(params, "Restarts:basename", resubmit_command);
parser_get_param_string(params, "Restarts:resubmit_command",
resubmit_command);
/* If restarting, look for the restart files. */
if (restart) {
......
......@@ -114,15 +114,16 @@ InitialConditions:
# Parameters controlling restarts
Restarts:
enable: 1 # (Optional) whether to enable dumping restarts at fixed intervals.
save: 1 # (Optional) whether to save copies of the previous set of restart files (named .prev)
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.
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.
enable: 1 # (Optional) whether to enable dumping restarts at fixed intervals.
save: 1 # (Optional) whether to save copies of the previous set of restart files (named .prev)
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.
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.
resubmit_command: ./resub.sh # (Optional) Command to run when time limit is reached. Compulsory if resubmit_on_exit is switched on.
# Parameters governing domain decomposition
DomainDecomposition:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment