aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/interpolate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interpolate.c b/src/interpolate.c
index 16cb5a4..66d86b4 100644
--- a/src/interpolate.c
+++ b/src/interpolate.c
@@ -317,7 +317,7 @@ Rot180_SymmetryInterpolate (CCTK_POINTER_TO_CONST const cctkGH_,
parities[0] = parities[1] = parities[2] = +1;
} else {
parities[0] = parities[1] = parities[2] = +1;
- parities[index] = -1;
+ parities[index-1] = -1;
}
} else if (CCTK_EQUALS (tensortypealias, "uu_sym")
|| CCTK_EQUALS (tensortypealias, "dd_sym")) {
@@ -339,10 +339,10 @@ Rot180_SymmetryInterpolate (CCTK_POINTER_TO_CONST const cctkGH_,
parities[0] = parities[1] = parities[2] = +1;
} else if (vi < firstvar + 4) {
parities[0] = parities[1] = parities[2] = +1;
- parities[index] = -1;
+ parities[index-1] = -1;
} else {
parities[0] = parities[1] = parities[2] = +1;
- switch (index) {
+ switch (index-4) {
case 0: break;
case 1: parities[0] = parities[1] = -1; break;
case 2: parities[0] = parities[2] = -1; break;