aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreschnett <eschnett@1bf05452-ddb3-4880-bfa1-00436340132b>2013-01-15 02:41:19 +0000
committereschnett <eschnett@1bf05452-ddb3-4880-bfa1-00436340132b>2013-01-15 02:41:19 +0000
commit1141141714011b4a894ee2c266ebf82405221e70 (patch)
tree174b43d0beb7b12627a3a3f2dfd8388dcf35c831
parentd77fef8058b20721198c408497ab1d6219b268fc (diff)
Update calls to thorn SlabHEADsvnmaster
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Periodic/trunk@38 1bf05452-ddb3-4880-bfa1-00436340132b
-rw-r--r--src/periodic.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/periodic.c b/src/periodic.c
index 401f6ed..3932dd9 100644
--- a/src/periodic.c
+++ b/src/periodic.c
@@ -114,7 +114,7 @@ BndPeriodicVI (CCTK_POINTER_TO_CONST _GH,
#pragma omp parallel for
for (int k=imin[2]; k<imax[2]; ++k) {
for (int j=imin[1]; j<imax[1]; ++j) {
- int const ind3d = imin[0] + data.lsh[0] * (j + data.lsh[1] * k);
+ int const ind3d = imin[0] + data.ash[0] * (j + data.ash[1] * k);
memset ((char*)varptr + ind3d*vartypesize,
poison_value, (imax[0]-imin[0])*vartypesize);
}
@@ -150,6 +150,7 @@ BndPeriodicVI (CCTK_POINTER_TO_CONST _GH,
xferinfo[d].src.gsh = data.gsh [d];
xferinfo[d].src.lbnd = data.lbnd [d];
xferinfo[d].src.lsh = data.lsh [d];
+ xferinfo[d].src.ash = data.ash [d];
xferinfo[d].src.lbbox = fake_bbox [2*d ];
xferinfo[d].src.ubbox = fake_bbox [2*d+1];
xferinfo[d].src.nghostzones = data.nghostzones[d];
@@ -160,6 +161,7 @@ BndPeriodicVI (CCTK_POINTER_TO_CONST _GH,
xferinfo[d].dst.gsh = data.gsh [d];
xferinfo[d].dst.lbnd = data.lbnd [d];
xferinfo[d].dst.lsh = data.lsh [d];
+ xferinfo[d].dst.ash = data.ash [d];
xferinfo[d].dst.lbbox = fake_bbox [2*d ];
xferinfo[d].dst.ubbox = fake_bbox [2*d+1];
xferinfo[d].dst.nghostzones = data.nghostzones[d];
@@ -263,7 +265,7 @@ BndPeriodicVI (CCTK_POINTER_TO_CONST _GH,
for (int k=imin[2]; k<imax[2]; ++k) {
for (int j=imin[1]; j<imax[1]; ++j) {
for (int i=imin[0]; i<imax[0]; ++i) {
- int const ind3d = i + data.lsh[0] * (j + data.lsh[1] * k);
+ int const ind3d = i + data.ash[0] * (j + data.ash[1] * k);
if (! memcmp((char*)varptr + ind3d*vartypesize, poison,
vartypesize))
{