Changeset 12583


Ignore:
Timestamp:
06/29/12 11:04:26 (13 years ago)
Author:
utke
Message:

the specialized function template needs to be moved to the cpp file or else we get multiple definitions at link time;
the "INTEL_WIN" version in the isnan.cpp file was obsolete

Location:
issm/trunk-jpl/src/c/shared/Numerics
Files:
2 edited

Legend:

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

    r12529 r12583  
    11/*This routine only used by Intel compler: */
    2 #ifdef _INTEL_WIN_
    32
    4 int xIsNan<IssmDouble>(IssmPDouble x){
    5         return (x!=x)?1:0;
     3#include "../../include/include.h"
     4#include "isnan.h"
     5
     6#ifdef _HAVE_ADOLC_
     7template <> int xIsNan<adouble> (const adouble& X) {
     8  return isnan(X.getValue());
    69}
    710#endif
    8 
  • issm/trunk-jpl/src/c/shared/Numerics/isnan.h

    r12545 r12583  
    1717
    1818#ifdef _HAVE_ADOLC_
    19 template <> int xIsNan<adouble> (const adouble& X) {
    20   return isnan(X.getValue());
    21 }
     19template <> int xIsNan<adouble> (const adouble& X);
    2220#endif
    2321
Note: See TracChangeset for help on using the changeset viewer.