diff options
author | eschnett <eschnett@ff385933-4943-42dc-877b-ffc776028de6> | 2014-03-21 23:18:31 +0000 |
---|---|---|
committer | eschnett <eschnett@ff385933-4943-42dc-877b-ffc776028de6> | 2014-03-21 23:18:31 +0000 |
commit | 29fd32e8fed53db265f37c39f1addd347382e0b2 (patch) | |
tree | ecc23cbb0d1d527a7fdfaea993a4a78e4d9f1125 | |
parent | d24ce46135fcdae8b6309e45deb43d5c7501bfea (diff) |
Remove unnecessary HAVE_* guards
HAVE_ISNAN describes whether isnan() is available. CCTK_isnan is
always available.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@123 ff385933-4943-42dc-877b-ffc776028de6
-rw-r--r-- | src/NaNCheck.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/NaNCheck.cc b/src/NaNCheck.cc index b4f1057..baeb0d5 100644 --- a/src/NaNCheck.cc +++ b/src/NaNCheck.cc @@ -703,12 +703,8 @@ CHECK_DATA(const cctk_type *_data, int nelems, const CCTK_REAL *CarpetWeights, to isnan depending on the optimisation level, while C compilers do not appear to do this. */ bool found_inf = false, found_nan = false; -#ifdef HAVE_ISINF found_inf = CCTK_isinf(_data[_i]); -#endif -#ifdef HAVE_ISNAN found_nan = CCTK_isnan(_data[_i]); -#endif bool found_problem = (info->check_for_nan && found_nan) || (info->check_for_inf && found_inf); |