diff options
author | Christian Reisswig <reisswig@tapir.caltech.edu> | 2011-06-07 11:22:57 -0700 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 18:26:22 +0000 |
commit | c1fb1d45924159fa8fe96cfbfdcd6cdc5e6d0bc3 (patch) | |
tree | a57b77708121bccb391616fa97974fec404262fc /Carpet/CarpetReduce | |
parent | 1801bc6589abec293dd80003740539dec71d74d3 (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.c | 12 |
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 */ |