aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rotatingsymmetry180.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/rotatingsymmetry180.c b/src/rotatingsymmetry180.c
index d5143ea..216dc78 100644
--- a/src/rotatingsymmetry180.c
+++ b/src/rotatingsymmetry180.c
@@ -289,13 +289,16 @@ int BndRot180VI (cGH const * restrict const cctkGH,
assert (abs(parity) == 1);
if (parity == -1) {
int i, j, k;
- assert (dir == 0);
assert (group.dim == 3);
assert (group.vartype == CCTK_VARIABLE_REAL);
- for (k=0; k<cctkGH->cctk_lsh[2]; ++k) {
- for (j=0; j<cctkGH->cctk_lsh[1]; ++j) {
- for (i=0; i<stencil[dir]; ++i) {
- const int ind = CCTK_GFINDEX3D(cctkGH,i,j,k);
+ for (k=0; k<xferinfo[2].dst.len; ++k) {
+ for (j=0; j<xferinfo[1].dst.len; ++j) {
+ for (i=0; i<xferinfo[0].dst.len; ++i) {
+ const int ind
+ = CCTK_GFINDEX3D(cctkGH,
+ xferinfo[0].dst.off + i - cctk_lbnd[0],
+ xferinfo[1].dst.off + j - cctk_lbnd[1],
+ xferinfo[2].dst.off + k - cctk_lbnd[2]);
((CCTK_REAL *) varptr) [ind] *= -1;
}
}