diff options
Diffstat (limited to 'src/ScalarBoundary.c')
-rw-r--r-- | src/ScalarBoundary.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ScalarBoundary.c b/src/ScalarBoundary.c index 1a7cb03..2418aff 100644 --- a/src/ScalarBoundary.c +++ b/src/ScalarBoundary.c @@ -1148,8 +1148,8 @@ static int ApplyBndScalar (const cGH *GH, { lsh[i] = GH->cctk_lsh[i]; lssh[i] = GH->cctk_lssh[CCTK_LSSH_IDX (dstag[i], i)]; - doBC[i*2] &= GH->cctk_lsh[i] > 1 && GH->cctk_bbox[i*2]; - doBC[i*2+1] &= GH->cctk_lsh[i] > 1 && GH->cctk_bbox[i*2+1]; + doBC[i*2] &= GH->cctk_lsh[i] > widths[i*2] && GH->cctk_bbox[i*2]; + doBC[i*2+1] &= GH->cctk_lsh[i] > widths[i*2+1] && GH->cctk_bbox[i*2+1]; if (dir != 0) { doBC[i*2] &= (dir < 0 && (i + 1 == abs (dir))); |