diff options
Diffstat (limited to 'src/InterpLocalUniform.h')
-rw-r--r-- | src/InterpLocalUniform.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/InterpLocalUniform.h b/src/InterpLocalUniform.h index a111f02..bb412d0 100644 --- a/src/InterpLocalUniform.h +++ b/src/InterpLocalUniform.h @@ -35,7 +35,7 @@ typedef int bool; /* round floating-point value to nearest integer */ /* ... result is expressed as floating point! */ /* ... needs <math.h> for floor() */ -#define JT_ROUND(x) floor((x) + 0.5) +#define ROUND_TO_INTEGER__RESULT_IS_FP(x) floor((x) + 0.5) /******************************************************************************/ @@ -175,6 +175,9 @@ struct Jacobian_info /* grid is smaller than molecule */ #define MOLECULE_POSN_ERROR_GRID_TINY (-3) +/* someone passed us a NaN or other non-finite floating-point number */ +#define MOLECULE_POSN_ERROR_NAN (-4) + /******************************************************************************/ /* |