Ignore:
Timestamp:
10/22/12 09:18:02 (12 years ago)
Author:
Eric.Larour
Message:

CHG: resolved bug on murdo with isnan not working when including cmath.h instead of math.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/shared/Numerics/isnan.h

    r13769 r13782  
    1212#endif
    1313
    14 #include <cmath>
     14/*If include cmath instead of math, isnan on linux64 murdo does not work: */
     15#include <math.h>
    1516
    1617template <class T> int xIsNan(const T& X) {
     
    2324
    2425#if defined(_HAVE_ADOLC_) && !defined(_WRAPPERS_)
    25 template <> int xIsNan<adouble> (const adouble& X);
     26template <> int xIsNan<adouble> (const adouble& X) {
     27  return isnan(X.getValue());
     28}
    2629#endif
    2730
Note: See TracChangeset for help on using the changeset viewer.