diff options
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 */ |