aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Haas <roland.haas@physics.gatech.edu>2012-06-02 09:33:37 -0700
committerRoland Haas <roland.haas@physics.gatech.edu>2012-06-02 09:33:37 -0700
commit8f64104cc4e0b5495fffca7c22889b26ccb54067 (patch)
treef0ef1b86f8eb9cf93b8cc7ac743c4117fa49480b
parente408fcffacf758c29cc47a5f5a546a992a5ffb9f (diff)
CarpetEvolutionMask: use dd.ghost_widths rather than cctk_nghostzones
-rw-r--r--Carpet/CarpetEvolutionMask/src/evolution_mask.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/Carpet/CarpetEvolutionMask/src/evolution_mask.cc b/Carpet/CarpetEvolutionMask/src/evolution_mask.cc
index a7cc61edf..f8a20982a 100644
--- a/Carpet/CarpetEvolutionMask/src/evolution_mask.cc
+++ b/Carpet/CarpetEvolutionMask/src/evolution_mask.cc
@@ -45,6 +45,9 @@ namespace CarpetEvolutionMask {
assert (all (reffact == 2));
const i2vect buffer_widths = dd.buffer_widths.at(reflevel);
+ //const i2vect overlap_widths = dd.overlap_widths.at(reflevel);
+ // overlap_widths do not need to be taken into account since coincide with the prolongation stencil
+ const i2vect ghost_widths = dd.ghost_widths.at(reflevel);
// cout << "base: " << base << endl;
// cout << "coarsebase: " << coarsebase << endl;
@@ -87,7 +90,7 @@ namespace CarpetEvolutionMask {
i2vect antishrinkby;
for (int f=0; f<2;f++) {
for (int d=0; d<dim;d++) {
- antishrinkby[f][d] = cctkGH->cctk_nghostzones[d] + buffer_widths[f][d];
+ antishrinkby[f][d] = ghost_widths[f][d] + buffer_widths[f][d];
}
}
ibset antishrunk