From ffb2650beab4f35c554c33e420295948f6222ac4 Mon Sep 17 00:00:00 2001 From: eschnett Date: Fri, 28 Jan 2011 17:41:46 +0000 Subject: 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 --- src/walltime.c | 7 +++++++ 1 file changed, 7 insertions(+) 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) { -- cgit v1.2.3