aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetReduce
diff options
context:
space:
mode:
authorChristian Reisswig <reisswig@tapir.caltech.edu>2011-06-07 11:22:57 -0700
committerBarry Wardell <barry.wardell@gmail.com>2011-12-14 18:26:22 +0000
commitc1fb1d45924159fa8fe96cfbfdcd6cdc5e6d0bc3 (patch)
treea57b77708121bccb391616fa97974fec404262fc /Carpet/CarpetReduce
parent1801bc6589abec293dd80003740539dec71d74d3 (diff)
Erik's patch to fix a reduction operator problem.
Without this fix, reductions may depend on the number of processors used.
Diffstat (limited to 'Carpet/CarpetReduce')
-rw-r--r--Carpet/CarpetReduce/src/mask_coords.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/Carpet/CarpetReduce/src/mask_coords.c b/Carpet/CarpetReduce/src/mask_coords.c
index 814f1ecfb..c324671d1 100644
--- a/Carpet/CarpetReduce/src/mask_coords.c
+++ b/Carpet/CarpetReduce/src/mask_coords.c
@@ -109,10 +109,12 @@ CoordBase_SetupMask (CCTK_ARGUMENTS)
}
if (f==0) {
/* lower face */
- bmax[d] = imin[d] + bnd_points[2*d+f];
+ //bmax[d] = imin[d] + bnd_points[2*d+f];
+ bmax[d] = imin[d] + cctk_nghostzones[d];
} else {
/* upper face */
- bmin[d] = imax[d] - bnd_points[2*d+f];
+ //bmin[d] = imax[d] - bnd_points[2*d+f];
+ bmin[d] = imax[d] - cctk_nghostzones[d];
}
/* Loop over the boundary */
@@ -201,10 +203,12 @@ CoordBase_SetupMask (CCTK_ARGUMENTS)
}
if (f==0) {
/* lower face */
- bmax[d] = imin[d] + bnd_points[2*d+f];
+ //bmax[d] = imin[d] + bnd_points[2*d+f];
+ bmax[d] = imin[d] + cctk_nghostzones[d];
} else {
/* upper face */
- bmin[d] = imax[d] - bnd_points[2*d+f];
+ //bmin[d] = imax[d] - bnd_points[2*d+f];
+ bmin[d] = imax[d] - cctk_nghostzones[d];
}
/* Loop over the boundary */