aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@ff385933-4943-42dc-877b-ffc776028de6>2003-10-08 12:50:49 +0000
committertradke <tradke@ff385933-4943-42dc-877b-ffc776028de6>2003-10-08 12:50:49 +0000
commitcd09a9bfbe98c87accd97bce0e90a6e6d0ce6d31 (patch)
tree44ff7f7e002883fffdbee20141527e5d29b3ad77
parentb8fc7e54da3a2ddd75843797a2c968ae0a287fd3 (diff)
NaNChecker_CheckVarsForNaN() can be called mulitple times for the same
variable during the same timestep. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@50 ff385933-4943-42dc-877b-ffc776028de6
-rw-r--r--src/NaNCheck.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/NaNCheck.c b/src/NaNCheck.c
index ea880de..0e2bfaa 100644
--- a/src/NaNCheck.c
+++ b/src/NaNCheck.c
@@ -270,11 +270,13 @@ int NaNChecker_CheckVarsForNaN (const cGH *GH,
"NULL pointer passed for 'GH' and/or 'vars' argument");
return (-2);
}
+#if 0
if (GH->cctk_iteration == last_iteration_output)
{
CCTK_WARN (2, "Already called NaNChecker I/O method at this iteration");
return (-1);
}
+#endif
if (action_if_found && (! CCTK_Equals (action_if_found, "just warn") &&
! CCTK_Equals (action_if_found, "terminate") &&
@@ -321,8 +323,10 @@ int NaNChecker_CheckVarsForNaN (const cGH *GH,
return (-4);
}
+#if 0
/* save the iteration of the last call */
last_iteration_output = GH->cctk_iteration;
+#endif
if (info.count > 0 && info.action_if_found)
{