Changeset 14998


Ignore:
Timestamp:
05/09/13 23:53:42 (12 years ago)
Author:
Eric.Larour
Message:

CHG: had to define min and max for IssmPDouble in adolc mode.

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

Legend:

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

    r14981 r14998  
    2727        else return b;
    2828}
     29
     30#ifdef _HAVE_ADOLC_
     31IssmPDouble  min(IssmPDouble a,IssmPDouble b){
     32        if (a<b)return a;
     33        else return b;
     34}
     35IssmPDouble  max(IssmPDouble a,IssmPDouble b){
     36        if (a>b)return a;
     37        else return b;
     38}
     39#endif
     40
     41
  • issm/trunk-jpl/src/c/shared/Numerics/numerics.h

    r14977 r14998  
    55#ifndef _NUMERICS_H_
    66#define  _NUMERICS_H_
     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
    713
    814#include "./Verbosity.h"
     
    1723IssmDouble  min(IssmDouble a,IssmDouble b);
    1824IssmDouble  max(IssmDouble a,IssmDouble b);
     25
     26#ifdef _HAVE_ADOLC_
     27IssmPDouble  min(IssmPDouble a,IssmPDouble b);
     28IssmPDouble  max(IssmPDouble a,IssmPDouble b);
     29#endif
     30
    1931int         min(int a,int b);
    2032int         max(int a,int b);
  • issm/trunk-jpl/src/c/toolkits/issm/IssmSeqVec.h

    r14950 r14998  
    1717#endif
    1818
    19 #include "../../shared/Exceptions/exceptions.h"
    20 #include "../../shared/io/Print/Print.h"
    21 #include "../../shared/MemOps/MemOps.h"
     19#include "../../shared/shared.h"
    2220#include <math.h>
    2321
Note: See TracChangeset for help on using the changeset viewer.