Ice Sheet System Model
4.18
Code documentation
src
c
shared
Numerics
types.h
Go to the documentation of this file.
1
5
#ifndef _TYPES_H_
6
#define _TYPES_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
13
14
#include <stdio.h>
15
16
/*here are our abstracted types: inspired on petsc */
17
#if ISSM_USE_64BIT_INDICES == 1
18
typedef
long
long
IssmInt
;
19
#else
20
typedef
int
IssmInt
;
21
#endif
22
23
#if defined(_HAVE_ADOLC_) && !defined(_WRAPPERS_)
24
/*ADOLC typedefs*/
25
#include "adolc/adolc.h"
26
typedef
adouble
IssmDouble
;
/*for active variables*/
27
typedef
double
IssmPDouble
;
/*for passive variables*/
28
29
#elif defined(_HAVE_CODIPACK_) && !defined(_WRAPPERS_)
30
/*CoDiPack typedefs*/
31
#include <codi.hpp>
32
typedef
codi::RealReverse
IssmDouble
;
33
typedef
double
IssmPDouble
;
34
35
/*Non-AD typedefs*/
36
#else
37
typedef
double
IssmDouble
;
38
typedef
IssmDouble
IssmPDouble
;
39
#endif
40
41
#endif //ifndef _TYPES_H_
IssmDouble
double IssmDouble
Definition:
types.h:37
IssmInt
int IssmInt
Definition:
types.h:20
IssmPDouble
IssmDouble IssmPDouble
Definition:
types.h:38
Generated on Thu Jul 2 2020 08:09:22 for Ice Sheet System Model by
1.8.19