Ice Sheet System Model  4.18
Code documentation
extrema.cpp
Go to the documentation of this file.
1 
5 #ifdef HAVE_CONFIG_H
6  #include <config.h>
7 #else
8 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
9 #endif
10 
11 #include "./types.h"
12 
13 #ifndef _HAVE_CODIPACK_// already defined in codipack headers
15  if (a<b)return a;
16  else return b;
17 }
18 #endif
19 int min(int a,int b){
20  if (a<b)return a;
21  else return b;
22 }
23 #ifndef _HAVE_CODIPACK_// already defined in codipack headers
25  if (a>b)return a;
26  else return b;
27 }
28 #endif
29 int max(int a,int b){
30  if (a>b)return a;
31  else return b;
32 }
33 
34 #ifdef _HAVE_AD_
36  if (a<b)return a;
37  else return b;
38 }
40  if (a>b)return a;
41  else return b;
42 }
43 #endif
IssmDouble
double IssmDouble
Definition: types.h:37
types.h
prototypes for types.h
min
IssmDouble min(IssmDouble a, IssmDouble b)
Definition: extrema.cpp:14
max
IssmDouble max(IssmDouble a, IssmDouble b)
Definition: extrema.cpp:24
IssmPDouble
IssmDouble IssmPDouble
Definition: types.h:38