diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-05-23 20:47:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-05-23 20:47:00 +0000 |
commit | e71f3972399887ffaa9754af5afc22534cf17b13 (patch) | |
tree | 1ca7e2b7cb5359127cacd4ec9ed59a332f1d6e3b /Carpet/Carpet | |
parent | 4629d94a8b235029d2d0a8ed9f133d7387f55e9d (diff) |
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
Diffstat (limited to 'Carpet/Carpet')
-rw-r--r-- | Carpet/Carpet/src/Evolve.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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; |