aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreschnett <eschnett@ec5ace1c-6809-4267-9cad-ed2f0ecfe59c>2011-01-28 17:41:46 +0000
committereschnett <eschnett@ec5ace1c-6809-4267-9cad-ed2f0ecfe59c>2011-01-28 17:41:46 +0000
commitffb2650beab4f35c554c33e420295948f6222ac4 (patch)
treedf4c99da7a5518d25aff348b30a4efa92f69e5d6
parent571f4fec08bba4af5be3734ca515926325b729a7 (diff)
If the maximum wall time or the remaining wall time have not been set,
then don't terminate git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/TerminationTrigger/trunk@7 ec5ace1c-6809-4267-9cad-ed2f0ecfe59c
-rw-r--r--src/walltime.c7
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)
{