From 2b87163ac7d67d88e7bebb3c08185d2cf887df07 Mon Sep 17 00:00:00 2001 From: Roland Haas Date: Mon, 25 Jun 2012 21:03:35 -0700 Subject: Carpet: ensure scheduling of global-early routines in POSTREGRID these routines would not start since they were only checked for on rl==0 which is never recomposed. --- Carpet/Carpet/src/Evolve.cc | 22 ++++++++++++++++++++- Carpet/Carpet/src/Initialise.cc | 44 +++++++++++++++++++++++++++++++++++++++-- 2 files changed, 63 insertions(+), 3 deletions(-) diff --git a/Carpet/Carpet/src/Evolve.cc b/Carpet/Carpet/src/Evolve.cc index 19e25fc9b..32a2293ac 100644 --- a/Carpet/Carpet/src/Evolve.cc +++ b/Carpet/Carpet/src/Evolve.cc @@ -294,6 +294,12 @@ namespace Carpet { if (did_regrid) { bool did_any_recompose = false; BEGIN_META_MODE (cctkGH) { + + bool have_done_global_mode = false; + bool have_done_early_global_mode = false; + bool have_done_late_global_mode = false; + bool have_done_anything = false; + for (int rl=0; rlcctk_iteration, (double)cctkGH->cctk_time, @@ -1129,6 +1164,11 @@ namespace Carpet { } // if did_recompose } // for rl + + if (have_done_anything) assert (have_done_global_mode); + if (have_done_anything) assert (have_done_early_global_mode); + if (have_done_anything) assert (have_done_late_global_mode); + } END_META_MODE; } // if did_regrid -- cgit v1.2.3