diff options
author | tradke <tradke@ff385933-4943-42dc-877b-ffc776028de6> | 2003-06-19 14:37:16 +0000 |
---|---|---|
committer | tradke <tradke@ff385933-4943-42dc-877b-ffc776028de6> | 2003-06-19 14:37:16 +0000 |
commit | f167a625e950caf91ca3ca070fc2f98c4f6edaa5 (patch) | |
tree | 6b7e64ac0ed1240c6f838fa36c4c374aa0e357cb | |
parent | f4a20a50e6a067a46cf87c5055b5340f95a39d4a (diff) |
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
-rw-r--r-- | src/NaNCheck.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |