aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src
diff options
context:
space:
mode:
authorschnetter <>2004-03-22 17:12:00 +0000
committerschnetter <>2004-03-22 17:12:00 +0000
commitc2be4920fe1e365882970bd7e981ba5e2039ca0f (patch)
treea37aa6b24fe2fcd3afa74d51aa789ff0f2056593 /Carpet/CarpetLib/src
parentb6718262b1faf879c1dbd9ff509a1bfdecca7338 (diff)
When regridding, prolongate the boundaries before synchronising.
darcs-hash:20040322171233-07bb3-e2f320128e8e821ee4f339defcaf7ca93c6e3b16.gz
Diffstat (limited to 'Carpet/CarpetLib/src')
-rw-r--r--Carpet/CarpetLib/src/ggf.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/Carpet/CarpetLib/src/ggf.cc b/Carpet/CarpetLib/src/ggf.cc
index 8aca0b128..d34a10835 100644
--- a/Carpet/CarpetLib/src/ggf.cc
+++ b/Carpet/CarpetLib/src/ggf.cc
@@ -1,4 +1,4 @@
-// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/ggf.cc,v 1.32 2004/02/27 16:25:53 schnetter Exp $
+// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/ggf.cc,v 1.33 2004/03/22 18:12:33 schnetter Exp $
#include <assert.h>
#include <stdlib.h>
@@ -138,10 +138,6 @@ void ggf<D>::recompose (const int initialise_from, const bool do_prolongate) {
for (int c=0; c<h.components(rl); ++c) {
for (int ml=0; ml<h.mglevels(rl,c); ++ml) {
- for (comm_state<D> state; !state.done(); state.step()) {
- sync (state,tl,rl,c,ml);
- }
-
if (do_prolongate) {
// TODO: assert that reflevel 0 boundaries are copied
if (rl>0) {
@@ -152,6 +148,10 @@ void ggf<D>::recompose (const int initialise_from, const bool do_prolongate) {
} // if rl
}
+ for (comm_state<D> state; !state.done(); state.step()) {
+ sync (state,tl,rl,c,ml);
+ }
+
} // for ml
} // for c