diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2011-06-23 15:19:04 -0400 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 19:53:47 +0000 |
commit | 63b2384c990a971188d0ad825be54d1f81f37ce1 (patch) | |
tree | 6c48c790cacf3329c8c36ca57918ace22c1d369f /Carpet/CarpetReduce | |
parent | 5091afc21beb2aabc1b0c8de3de993020c218aee (diff) |
CarpetReduce: Correct boundary sizes in reduction mask setup
The previous commit had an error.
Diffstat (limited to 'Carpet/CarpetReduce')
-rw-r--r-- | Carpet/CarpetReduce/src/mask_coords.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Carpet/CarpetReduce/src/mask_coords.c b/Carpet/CarpetReduce/src/mask_coords.c index c324671d1..b945f6e1c 100644 --- a/Carpet/CarpetReduce/src/mask_coords.c +++ b/Carpet/CarpetReduce/src/mask_coords.c @@ -109,12 +109,10 @@ CoordBase_SetupMask (CCTK_ARGUMENTS) } if (f==0) { /* lower face */ - //bmax[d] = imin[d] + bnd_points[2*d+f]; - bmax[d] = imin[d] + cctk_nghostzones[d]; + bmax[d] = imin[d] + bnd_points[2*d+f]; } else { /* upper face */ - //bmin[d] = imax[d] - bnd_points[2*d+f]; - bmin[d] = imax[d] - cctk_nghostzones[d]; + bmin[d] = imax[d] - bnd_points[2*d+f]; } /* Loop over the boundary */ @@ -203,11 +201,9 @@ CoordBase_SetupMask (CCTK_ARGUMENTS) } if (f==0) { /* lower face */ - //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] - cctk_nghostzones[d]; } |