aboutsummaryrefslogtreecommitdiff
path: root/src/NaNCheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/NaNCheck.c')
-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"))
{