From 0a9e8ce2afba60eb0df693aa2cbe35c19d720244 Mon Sep 17 00:00:00 2001 From: eschnett Date: Tue, 2 Aug 2011 23:51:12 +0000 Subject: Initialise NaN mask after recovering Initialise NaN mask after recovering. Try to ensure that Nan checking happens last in a schedule bin. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@97 ff385933-4943-42dc-877b-ffc776028de6 --- schedule.ccl | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/schedule.ccl b/schedule.ccl index 89c6cbd..050cb58 100644 --- a/schedule.ccl +++ b/schedule.ccl @@ -5,7 +5,7 @@ if (*check_vars && check_every > 0) { STORAGE: NaNmask NaNsFound - schedule NaNChecker_ResetCounter at INITIAL + schedule NaNChecker_ResetCounter at BASEGRID { LANG: C OPTIONS: global @@ -17,13 +17,25 @@ if (*check_vars && check_every > 0) OPTIONS: global } "Reset the NaNChecker::NaNsFound counter" - schedule NaNChecker_NaNCheck at POSTSTEP + schedule NaNChecker_NaNCheck as zzz_NaNChecker_NaNCheck at POSTSTEP { LANG: C OPTIONS: local } "Check for NaNs and count them in NaNChecker::NaNsFound" - schedule NaNChecker_TakeAction at POSTSTEP after NaNChecker_NaNCheck + schedule NaNChecker_TakeAction at POSTSTEP after zzz_NaNChecker_NaNCheck + { + LANG: C + OPTIONS: global loop-level + } "Output NaNChecker::NaNmask and take action according to NaNChecker::action_if_found" + + schedule NaNChecker_NaNCheck as zzz_NaNChecker_NaNCheck at POST_RECOVER_VARIABLES + { + LANG: C + OPTIONS: local + } "Check for NaNs and count them in NaNChecker::NaNsFound" + + schedule NaNChecker_TakeAction at POST_RECOVER_VARIABLES after zzz_NaNChecker_NaNCheck { LANG: C OPTIONS: global loop-level -- cgit v1.2.3