Changeset 18124


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

CHG: moved some code from CPP to H so that ranlib does not complain about no symbol found

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

Legend:

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

    r18100 r18124  
    175175                                        ./shared/shared.h\
    176176                                        ./shared/MemOps/MemOps.h\
    177                                         ./shared/MemOps/MemOps.cpp\
    178177                                        ./shared/Matrix/matrix.h\
    179178                                        ./shared/Matrix/MatrixUtils.cpp\
     
    204203                                        ./shared/Numerics/cross.cpp\
    205204                                        ./shared/Numerics/isnan.h\
    206                                         ./shared/Numerics/isnan.cpp\
    207205                                        ./shared/Numerics/cubic.cpp\
    208206                                        ./shared/Numerics/NewtonSolveDnorm.cpp\
  • issm/trunk-jpl/src/c/shared/MemOps/MemOps.h

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

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