aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortradke <tradke@ff385933-4943-42dc-877b-ffc776028de6>2003-06-17 10:47:23 +0000
committertradke <tradke@ff385933-4943-42dc-877b-ffc776028de6>2003-06-17 10:47:23 +0000
commita1b2cf0343152ad1240d27ff9265f78b8c323852 (patch)
tree4cc00e65df3166db439689b9365f2ac877a76754 /src
parentc78af4d3724f4ee7fe7a8442e8aae8095e83da96 (diff)
Added steerable INTEGER parameter NaNChecker::check_after to specify an
iteration number when to start checking for NaNs. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@41 ff385933-4943-42dc-877b-ffc776028de6
Diffstat (limited to 'src')
-rw-r--r--src/NaNCheck.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/NaNCheck.c b/src/NaNCheck.c
index 4368143..d140c47 100644
--- a/src/NaNCheck.c
+++ b/src/NaNCheck.c
@@ -115,7 +115,7 @@ int NaNChecker_NaNCheck (const cGH *GH)
DECLARE_CCTK_PARAMETERS
- if (GH->cctk_iteration % check_every)
+ if (GH->cctk_iteration < check_after || GH->cctk_iteration % check_every)
{
return (0);
}
@@ -182,7 +182,6 @@ int NaNChecker_NaNCheck (const cGH *GH)
{
CCTK_WARN (1, "'action_if_found' parameter is set to 'terminate' - "
"scheduling graceful termination of Cactus");
- CCTK_TerminateNext (NULL);
}
else if (CCTK_Equals (info.action_if_found, "abort"))
{