From 0215b5a212c8c7dc8ec0341bc120234376474aec Mon Sep 17 00:00:00 2001 From: schnetter Date: Fri, 2 Mar 2007 23:25:12 +0000 Subject: Don't use == to look for poison, use memcmp instead. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/RotatingSymmetry90/trunk@43 c3c03602-0f4f-0410-b3fa-d2c81c8a7dc5 --- param.ccl | 6 ++--- src/rotatingsymmetry90.c | 64 +++++++++++++++++++++++++++++++----------------- 2 files changed, 45 insertions(+), 25 deletions(-) diff --git a/param.ccl b/param.ccl index 33137ca..8136257 100644 --- a/param.ccl +++ b/param.ccl @@ -11,7 +11,7 @@ BOOLEAN poison_boundaries "Fill the symmetry boundary with a poison value before { } "no" -CCTK_REAL poison_value "Poison value (must not occur naturally)" +CCTK_INT poison_value "Integer value (0..255) used to poison new timelevels (with memset)" STEERABLE=always { - *:* :: "" -} -424242.0 + 0:255 :: "Must fit into a byte. Use 0 for zero, 255 for nan, and e.g. 113 for a large value." +} 255 diff --git a/src/rotatingsymmetry90.c b/src/rotatingsymmetry90.c index 2590749..42776d8 100644 --- a/src/rotatingsymmetry90.c +++ b/src/rotatingsymmetry90.c @@ -459,16 +459,18 @@ int BndRot90VI (cGH const * restrict const cctkGH, case CCTK_VARIABLE_INT: /* do nothing */ break; - case CCTK_VARIABLE_REAL: + case CCTK_VARIABLE_REAL: { + CCTK_REAL * restrict const varptr = varptrs[var]; for (k=imin[0]; k