Changeset 24313 for issm/trunk/src/c/shared/Numerics/isnan.cpp
- Timestamp:
- 11/01/19 12:01:57 (5 years ago)
- Location:
- issm/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/c
- Property svn:ignore
-
issm/trunk/src/c/shared/Numerics/isnan.cpp
r23394 r24313 1 /*This routine only used by Intel compler: */2 3 1 #ifdef HAVE_CONFIG_H 4 2 #include <config.h> … … 7 5 #endif 8 6 7 /*Special overloading definitions for AD*/ 9 8 #include "./isnan.h" 10 9 11 10 #if defined(_HAVE_ADOLC_) && !defined(_WRAPPERS_) 12 template <> int xIsNan<adouble> (const adouble& X){ 13 return std::isnan(X.getValue()); 14 } 15 template <> int xIsInf<adouble> (const adouble& X){ 16 return std::isinf(X.getValue()); 17 } 11 template <> int xIsNan<adouble> (const adouble& X){ return std::isnan(X.getValue()); } 12 template <> int xIsInf<adouble> (const adouble& X){ return std::isinf(X.getValue()); } 18 13 #endif 19 14 20 15 #if defined(_HAVE_CODIPACK_) && !defined(_WRAPPERS_) 21 template <> int xIsNan<IssmDouble> (const IssmDouble& X){ 22 return std::isnan(X.getValue()); 23 } 24 template <> int xIsInf<IssmDouble> (const IssmDouble& X){ 25 return std::isinf(X.getValue()); 26 } 16 template <> int xIsNan<IssmDouble> (const IssmDouble& X){ return std::isnan(X.getValue()); } 17 template <> int xIsInf<IssmDouble> (const IssmDouble& X){ return std::isinf(X.getValue()); } 27 18 #endif
Note:
See TracChangeset
for help on using the changeset viewer.