source: issm/oecreview/Archive/17984-18295/ISSM-18124-18125.diff@ 18296

Last change on this file since 18296 was 18296, checked in by Mathieu Morlighem, 11 years ago

Added 17984-18295

File size: 3.1 KB
  • ../trunk-jpl/src/c/shared/Numerics/isnan.cpp

     
     1/*This routine only used by Intel compler: */
     2
     3#ifdef HAVE_CONFIG_H
     4   #include <config.h>
     5#else
     6#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
     7#endif
     8
     9#include "isnan.h"
     10
     11#if defined(_HAVE_ADOLC_) && !defined(_WRAPPERS_)
     12template <> int xIsNan<adouble> (const adouble& X){
     13  return isnan(X.getValue());
     14}
     15#endif
  • ../trunk-jpl/src/c/shared/Numerics/isnan.h

     
    2424
    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
    3230#endif
  • ../trunk-jpl/src/c/shared/MemOps/MemOps.cpp

     
     1/*
     2 * MemOps.cpp
     3 *
     4 *  Created on: Sep 10, 2013
     5 *      Author: utke
     6 */
     7
     8#ifdef HAVE_CONFIG_H
     9   #include <config.h>
     10#else
     11#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
     12#endif
     13
     14#include "MemOps.h"
     15
     16#if defined(_HAVE_ADOLC_) && !defined(_WRAPPERS_)
     17template <> adouble*  xNew(unsigned int size) {
     18        ensureContiguousLocations(size);
     19        adouble* aT_p=new adouble[size];
     20        assert(aT_p);
     21        return aT_p;
     22}
     23#endif
  • ../trunk-jpl/src/c/shared/MemOps/MemOps.h

     
    143143
    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
    154149#endif
  • ../trunk-jpl/src/c/Makefile.am

     
    174174                                        ./classes/Profiler.cpp\
    175175                                        ./shared/shared.h\
    176176                                        ./shared/MemOps/MemOps.h\
     177                                        ./shared/MemOps/MemOps.cpp\
    177178                                        ./shared/Matrix/matrix.h\
    178179                                        ./shared/Matrix/MatrixUtils.cpp\
    179180                                        ./shared/io/io.h\
     
    202203                                        ./shared/Numerics/GaussPoints.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\
    207209                                        ./shared/Numerics/extrema.cpp\
Note: See TracBrowser for help on using the repository browser.