Ice Sheet System Model  4.18
Code documentation
isnan.cpp
Go to the documentation of this file.
1 #ifdef HAVE_CONFIG_H
2  #include <config.h>
3 #else
4 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
5 #endif
6 
7 /*Special overloading definitions for AD*/
8 #include "./isnan.h"
9 
10 #if defined(_HAVE_ADOLC_) && !defined(_WRAPPERS_)
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()); }
13 #endif
14 
15 #if defined(_HAVE_CODIPACK_) && !defined(_WRAPPERS_)
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()); }
18 #endif
IssmDouble
double IssmDouble
Definition: types.h:37
isnan.h