diff options
author | rideout <rideout@6a38eb6e-646e-4a02-a296-d141613ad6c4> | 2003-05-06 12:01:42 +0000 |
---|---|---|
committer | rideout <rideout@6a38eb6e-646e-4a02-a296-d141613ad6c4> | 2003-05-06 12:01:42 +0000 |
commit | 6d75032de476a26d33537dff2242f9909cb7a8a1 (patch) | |
tree | 00ae067ba54226d7b8b15e8bc1b3db1b50215d4c /src/RadiationBoundary.c | |
parent | 17b4556621acbf7b345ae3e966e1905fba5047bb (diff) |
Check that the grid size is greater than the requested boundary width.
Fixes CactusBase/1501.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Boundary/trunk@223 6a38eb6e-646e-4a02-a296-d141613ad6c4
Diffstat (limited to 'src/RadiationBoundary.c')
-rw-r--r-- | src/RadiationBoundary.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/RadiationBoundary.c b/src/RadiationBoundary.c index 88d6b1e..0fdfb3f 100644 --- a/src/RadiationBoundary.c +++ b/src/RadiationBoundary.c @@ -1705,8 +1705,8 @@ static int ApplyBndRadiative (const cGH *GH, } for (i = 0; i < MAXDIM; 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))); |