diff --git a/examples/main.c b/examples/main.c index 8e9ee1e05c4e1339f8662bfb31fa9b8eff70bb1c..223b20e95f0fb6028b1abadfa19d31a2d394f874 100644 --- a/examples/main.c +++ b/examples/main.c @@ -1241,8 +1241,11 @@ int main(int argc, char *argv[]) { /* Did we want to run a re-submission command just before dying? */ if (myrank == 0 && resubmit) { - message("Running the resubmission command."); + message("Running the resubmission command:"); restart_resubmit(resubmit_command); + fflush(stdout); + fflush(stderr); + message("resubmission command completed."); } /* Clean everything */ diff --git a/examples/parameter_example.yml b/examples/parameter_example.yml index 05102e8a948c6b79a2e5f3c4aaac062c536f1b88..16fa911e5e2e86eabe66b8cb6b9d0f1e1370c58b 100644 --- a/examples/parameter_example.yml +++ b/examples/parameter_example.yml @@ -123,7 +123,7 @@ Restarts: 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. + resubmit_command: ./resub.sh # (Optional) Command to run when time limit is reached. Compulsory if resubmit_on_exit is switched on. Note potentially unsafe. # Parameters governing domain decomposition DomainDecomposition: