From cd09a9bfbe98c87accd97bce0e90a6e6d0ce6d31 Mon Sep 17 00:00:00 2001 From: tradke Date: Wed, 8 Oct 2003 12:50:49 +0000 Subject: 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 --- src/NaNCheck.c | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- cgit v1.2.3