diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2010-04-26 19:04:03 -0500 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 16:45:41 +0000 |
commit | 579fafb785fd2b35591584cc65c62bbe44744448 (patch) | |
tree | e79cbd69d71ce566f82b5ceec025e1e6c370d2ca | |
parent | 0d35c68b3a565ec09cba0e4eb076eb10e84a0557 (diff) |
CarpetReduce: Use nan handling from CarpetLib
-rw-r--r-- | Carpet/CarpetReduce/src/reduce.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Carpet/CarpetReduce/src/reduce.cc b/Carpet/CarpetReduce/src/reduce.cc index 577fe2478..7e28a9ddc 100644 --- a/Carpet/CarpetReduce/src/reduce.cc +++ b/Carpet/CarpetReduce/src/reduce.cc @@ -250,10 +250,10 @@ namespace CarpetReduce { #ifdef HAVE_CCTK_REAL4 - template<> inline int myisnan (complex<CCTK_REAL4> const x) - { - return isnan (x.real()) or isnan (x.imag()); - } + // template<> inline int myisnan (complex<CCTK_REAL4> const x) + // { + // return isnan (x.real()) or isnan (x.imag()); + // } template<> inline complex<CCTK_REAL4> mymin (const complex<CCTK_REAL4> x, const complex<CCTK_REAL4> y) @@ -299,10 +299,10 @@ namespace CarpetReduce { #ifdef HAVE_CCTK_REAL8 - template<> inline int myisnan (complex<CCTK_REAL8> const x) - { - return isnan (x.real()) or isnan (x.imag()); - } + // template<> inline int myisnan (complex<CCTK_REAL8> const x) + // { + // return isnan (x.real()) or isnan (x.imag()); + // } template<> inline complex<CCTK_REAL8> mymin (const complex<CCTK_REAL8> x, const complex<CCTK_REAL8> y) @@ -348,10 +348,10 @@ namespace CarpetReduce { #ifdef HAVE_CCTK_REAL16 - template<> inline int myisnan (complex<CCTK_REAL16> const x) - { - return isnan (x.real()) or isnan (x.imag()); - } + // template<> inline int myisnan (complex<CCTK_REAL16> const x) + // { + // return isnan (x.real()) or isnan (x.imag()); + // } template<> inline complex<CCTK_REAL16> mymin (const complex<CCTK_REAL16> x, const complex<CCTK_REAL16> y) |