diff options
author | Roland Haas <roland.haas@physics.gatech.edu> | 2012-06-02 09:38:54 -0700 |
---|---|---|
committer | Roland Haas <roland.haas@physics.gatech.edu> | 2012-06-02 09:38:54 -0700 |
commit | 87b4fbd5a0d6d7be86dcb03a0422f7145c167cce (patch) | |
tree | ee423c56d6173084163fe90af23ee763e02101e8 | |
parent | bc240c9058b52394a0a43156429cf45cd9b01ab8 (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.cc | 3 |
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 |