From 655126e98267998083de5d436930af235ef79485 Mon Sep 17 00:00:00 2001 From: schnetter Date: Thu, 1 Mar 2007 00:01:01 +0000 Subject: Make option RotatingSymmetry90::poison_boundaries work, which can be used to ensure that this symmetry condition does not omit grid points. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/RotatingSymmetry180/trunk@41 20f44201-0f4f-0410-9130-e5fc2714a787 --- src/rotatingsymmetry180.c | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/src/rotatingsymmetry180.c b/src/rotatingsymmetry180.c index dcfde4b..2779e7a 100644 --- a/src/rotatingsymmetry180.c +++ b/src/rotatingsymmetry180.c @@ -380,14 +380,10 @@ int BndRot180VI (cGH const * restrict const cctkGH, int imin[3], imax[3]; int i, j, k; for (d=0; d<3; ++d) { - assert (0); /* xferinfo has not yet been allocated */ - imin[d] = xferinfo[d].dst.off; - imax[d] = xferinfo[d].dst.off + xferinfo[d].dst.len; - imin[d] -= cctk_lbnd[d]; - imax[d] -= cctk_lbnd[d]; - if (imin[d] < 0) imin[d] = 0; - if (imax[d] >= cctk_lsh[d]) imax[d] = cctk_lsh[d]; + imin[d] = 0; + imax[d] = cctk_lsh[d]; } + imax[dir] = cctk_nghostzones[dir]; var = 0; @@ -401,7 +397,7 @@ int BndRot180VI (cGH const * restrict const cctkGH, for (j=imin[1]; j= cctk_lsh[d]) imax[d] = cctk_lsh[d]; + imin[d] = 0; + imax[d] = cctk_lsh[d]; } + imax[dir] = cctk_nghostzones[dir]; var = 0; @@ -491,8 +484,11 @@ int BndRot180VI (cGH const * restrict const cctkGH, for (j=imin[1]; j