Changeset 16113


Ignore:
Timestamp:
09/10/13 09:52:24 (12 years ago)
Author:
utke
Message:

CHG added specialization of adhouble xNew so that we ensure contiguous
locations

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

Legend:

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

    r16026 r16113  
    164164                                        ./shared/shared.h\
    165165                                        ./shared/MemOps/MemOps.h\
     166                                        ./shared/MemOps/MemOps.cpp\
    166167                                        ./shared/Matrix/matrix.h\
    167168                                        ./shared/Matrix/MatrixUtils.cpp\
  • issm/trunk-jpl/src/c/shared/MemOps/MemOps.h

    r14912 r16113  
    2929template <class T> T** xNew(unsigned int dim1, unsigned int dim2) { /*{{{*/
    3030#ifdef USE_CXX_MEMORY_MANAGMENT_FOR_NON_POD_TYPES
    31   T* buf=new T[dim1*dim2];
    32   assert(buf );
     31  T* buf=xNew<T>(dim1*dim2);
    3332  T** aT_pp =new T*[dim1];
    3433  assert(aT_pp );
     
    143142/*}}}*/
    144143
     144#if defined(_HAVE_ADOLC_) && !defined(_WRAPPERS_)
     145#include "../Numerics/types.h"
     146template <> adouble*  xNew(unsigned int size);
    145147#endif
     148
     149#endif
Note: See TracChangeset for help on using the changeset viewer.