From f167a625e950caf91ca3ca070fc2f98c4f6edaa5 Mon Sep 17 00:00:00 2001 From: tradke Date: Thu, 19 Jun 2003 14:37:16 +0000 Subject: Fix NaNChecker_CheckVarsForNaN() so that it doesn't call CCTK_Equals() on the 'action_if_found' parameter if passed as a NULL pointer. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@43 ff385933-4943-42dc-877b-ffc776028de6 --- src/NaNCheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NaNCheck.c b/src/NaNCheck.c index ad854c0..51cf302 100644 --- a/src/NaNCheck.c +++ b/src/NaNCheck.c @@ -316,7 +316,7 @@ int NaNChecker_CheckVarsForNaN (const cGH *GH, /* save the iteration of the last call */ last_iteration_output = GH->cctk_iteration; - if (info.count > 0) + if (info.count > 0 && info.action_if_found) { /* if NaNs were found then output NaN mask with the 'IOHDF5' I/O method */ if (info.NaNmask && info.bitmask) -- cgit v1.2.3