From f93f800a924d0fdd051b8c09ac41982c1bdf5640 Mon Sep 17 00:00:00 2001 From: schnetter Date: Tue, 23 Mar 2010 23:37:07 +0000 Subject: When looking for poison, look also for nans and other non-finite numbers git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/RotatingSymmetry180/trunk@51 20f44201-0f4f-0410-9130-e5fc2714a787 --- src/rotatingsymmetry180.c | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/rotatingsymmetry180.c b/src/rotatingsymmetry180.c index 0862fc1..084732b 100644 --- a/src/rotatingsymmetry180.c +++ b/src/rotatingsymmetry180.c @@ -538,6 +538,7 @@ int BndRot180VI (cGH const * restrict const cctkGH, break; case CCTK_VARIABLE_REAL: { int poison_found = 0; + int nonfinite_found = 0; CCTK_REAL const * restrict const varptr = varptrs[var]; CCTK_REAL poison; memset (&poison, poison_value, sizeof poison); @@ -546,14 +547,25 @@ int BndRot180VI (cGH const * restrict const cctkGH, for (i=imin[2]; i