diff options
-rw-r--r-- | src/walltime.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/walltime.c b/src/walltime.c index 85209ed..cfa1ff8 100644 --- a/src/walltime.c +++ b/src/walltime.c @@ -53,6 +53,13 @@ void TerminationTrigger_CheckWalltime (CCTK_ARGUMENTS) CCTK_REAL time; + /* if the maximum wall time or the remaining wall time have not been + set, then don't terminate */ + if (max_walltime == 0.0 || on_remaining_walltime == 0.0) + { + return; + } + /* only one processor needs to query the elapsed runtime */ if (CCTK_MyProc (cctkGH) != 0) { |