aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetEvolutionMask
diff options
context:
space:
mode:
authorRoland Haas <roland.haas@physics.gatech.edu>2012-06-02 09:38:54 -0700
committerBarry Wardell <barry.wardell@gmail.com>2012-09-11 18:23:26 +0100
commit3800bd2f0cf55f916adaabffaab588422e5fa08f (patch)
tree804bd418a92add8449bd7308b099a86114d0a14a /Carpet/CarpetEvolutionMask
parenteb8d874e84846c2b15887a27cec1931c0f79f158 (diff)
CarpetEvolutionMask: enlarge evolved region by one in vertex centering
to remove the weight = 1/2 points that are used by reductions.
Diffstat (limited to 'Carpet/CarpetEvolutionMask')
-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