aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/Evolve.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/Carpet/src/Evolve.cc')
-rw-r--r--Carpet/Carpet/src/Evolve.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/Carpet/Carpet/src/Evolve.cc b/Carpet/Carpet/src/Evolve.cc
index 32a2293ac..72526b8a8 100644
--- a/Carpet/Carpet/src/Evolve.cc
+++ b/Carpet/Carpet/src/Evolve.cc
@@ -305,12 +305,10 @@ namespace Carpet {
bool const did_recompose = Recompose (cctkGH, rl, true);
did_any_recompose = did_any_recompose or did_recompose;
- // Do not omit the global mode call when the finest level
- // does not change:
- // if (did_recompose or (did_remove_level and rl == reflevels - 1)) {
- if (did_recompose or
- ((did_remove_level or did_any_recompose) and
- rl == reflevels - 1))
+ // Carpet assumes that a regridding operation always changes "level N
+ // and all finer levels" so we should call POSTREGRID on all finer levels
+ if (did_any_recompose or
+ (did_remove_level and rl == reflevels - 1))
{
BEGIN_MGLEVEL_LOOP (cctkGH) {
ENTER_LEVEL_MODE (cctkGH, rl) {