From e71f3972399887ffaa9754af5afc22534cf17b13 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Wed, 23 May 2007 20:47:00 +0000 Subject: Carpet: Always call postregrid on the finest level Always call postregrid on the finest level. Before, postregrid was only called on the finest level if (a) the level changed, or (b) the finest level was removed. Since global mode routines are called together with the finest level, postregrid is now always called on the finest level. darcs-hash:20070523204700-dae7b-de1d602c4a3d7a23c5efe2493e7e794859973c07.gz --- Carpet/Carpet/src/Evolve.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Carpet/Carpet/src/Evolve.cc') diff --git a/Carpet/Carpet/src/Evolve.cc b/Carpet/Carpet/src/Evolve.cc index 9d5179083..39568bc89 100644 --- a/Carpet/Carpet/src/Evolve.cc +++ b/Carpet/Carpet/src/Evolve.cc @@ -245,7 +245,10 @@ namespace Carpet { bool const did_recompose = Recompose (cctkGH, rl, true); - if (did_recompose or (did_remove_level and rl == reflevels - 1)) { + // 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 rl == reflevels - 1) { BEGIN_MGLEVEL_LOOP (cctkGH) { ENTER_LEVEL_MODE (cctkGH, rl) { do_global_mode = reflevel == reflevels - 1; -- cgit v1.2.3