aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnetter <schnetter@082bdb00-0f4f-0410-b49e-b1835e5f2039>2009-11-13 22:29:10 +0000
committerschnetter <schnetter@082bdb00-0f4f-0410-b49e-b1835e5f2039>2009-11-13 22:29:10 +0000
commit911617b7536168083927cbe92e522fcb9c9c99b4 (patch)
tree3bcc9260d96f305168b90d54c1d844c876a6401f
parent0b4a0d3a5fa98271fc61b8d46479cfa001ffd044 (diff)
Correct error again
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/ReflectionSymmetry/trunk@29 082bdb00-0f4f-0410-b49e-b1835e5f2039
-rw-r--r--src/apply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apply.c b/src/apply.c
index 45585b0..18e2d2c 100644
--- a/src/apply.c
+++ b/src/apply.c
@@ -494,8 +494,8 @@ BndReflectVI (cGH const * restrict const cctkGH,
int const have_points = cctkGH->cctk_gsh[dir];
int const need_points =
3 * cctkGH->cctk_nghostzones[dir]
- + do_stagger[2*dir] + do_stagger[2*dir+1];
- if (need_points < have_points) {
+ + !do_stagger[2*dir] + !do_stagger[2*dir+1];
+ if (need_points > have_points) {
CCTK_VWarn (CCTK_WARN_ABORT, __LINE__, __FILE__, CCTK_THORNSTRING,
"Cannot apply symmetry boundary zones in the %s %c direction, since there seem to be more symmetry zones than interior zones",
(face==0 ? "lower" : "upper"),