aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Haas <roland.haas@physics.gatech.edu>2012-06-02 09:38:54 -0700
committerRoland Haas <roland.haas@physics.gatech.edu>2012-06-02 09:38:54 -0700
commit87b4fbd5a0d6d7be86dcb03a0422f7145c167cce (patch)
treeee423c56d6173084163fe90af23ee763e02101e8
parentbc240c9058b52394a0a43156429cf45cd9b01ab8 (diff)
CarpetEvolutionMask: enlarge evolved region by one in vertex centering
to remove the weight = 1/2 points that are used by reductions.
-rw-r--r--Carpet/CarpetEvolutionMask/src/evolution_mask.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/Carpet/CarpetEvolutionMask/src/evolution_mask.cc b/Carpet/CarpetEvolutionMask/src/evolution_mask.cc
index 2966d2e54..03a0feb3c 100644
--- a/Carpet/CarpetEvolutionMask/src/evolution_mask.cc
+++ b/Carpet/CarpetEvolutionMask/src/evolution_mask.cc
@@ -92,6 +92,9 @@ namespace CarpetEvolutionMask {
for (int d=0; d<dim;d++) {
antishrinkby[f][d] = ghost_widths[f][d] + buffer_widths[f][d] +
enlarge_evolved_region_by;
+ if (hh.refcent == vertex_centered) {
+ antishrinkby[f][d] += 1; // remove the weight = 1/2 points so that reduction operation are unaffected
+ }
}
}
ibset antishrunk