Changeset 18125


Ignore:
Timestamp:
06/09/14 09:49:48 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: reverting back, AD does not compile like that (multiple definitions)

Location:
issm/trunk-jpl/src/c
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/Makefile.am

    r18124 r18125  
    175175                                        ./shared/shared.h\
    176176                                        ./shared/MemOps/MemOps.h\
     177                                        ./shared/MemOps/MemOps.cpp\
    177178                                        ./shared/Matrix/matrix.h\
    178179                                        ./shared/Matrix/MatrixUtils.cpp\
     
    203204                                        ./shared/Numerics/cross.cpp\
    204205                                        ./shared/Numerics/isnan.h\
     206                                        ./shared/Numerics/isnan.cpp\
    205207                                        ./shared/Numerics/cubic.cpp\
    206208                                        ./shared/Numerics/NewtonSolveDnorm.cpp\
  • issm/trunk-jpl/src/c/shared/MemOps/MemOps.h

    r18124 r18125  
    144144#if defined(_HAVE_ADOLC_) && !defined(_WRAPPERS_)
    145145#include "../Numerics/types.h"
    146 template <> adouble*  xNew(unsigned int size) {
    147         ensureContiguousLocations(size);
    148         adouble* aT_p=new adouble[size];
    149         assert(aT_p);
    150         return aT_p;
    151 }
     146template <> adouble*  xNew(unsigned int size);
    152147#endif
    153148
  • issm/trunk-jpl/src/c/shared/Numerics/isnan.h

    r18124 r18125  
    2525#if defined(_HAVE_ADOLC_) && !defined(_WRAPPERS_)
    2626#include "./types.h"
    27 template <> int xIsNan<adouble> (const adouble& X){
    28   return isnan(X.getValue());
    29 }
     27template <> int xIsNan<adouble> (const adouble& X);
    3028#endif
    3129
Note: See TracChangeset for help on using the changeset viewer.