From 911617b7536168083927cbe92e522fcb9c9c99b4 Mon Sep 17 00:00:00 2001 From: schnetter Date: Fri, 13 Nov 2009 22:29:10 +0000 Subject: Correct error again git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/ReflectionSymmetry/trunk@29 082bdb00-0f4f-0410-b49e-b1835e5f2039 --- src/apply.c | 4 ++-- 1 file 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"), -- cgit v1.2.3