Ice Sheet System Model  4.18
Code documentation
numerics.h
Go to the documentation of this file.
1 
5 #ifndef _NUMERICS_H_
6 #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
13 
14 #include "./Verbosity.h"
15 #include "./GaussPoints.h"
16 #include "./isnan.h"
17 #include "./recast.h"
18 #include "./types.h"
19 #include "./constants.h"
20 #include "./OptPars.h"
21 
22 #if !defined(_HAVE_CODIPACK_)
23 // already defined in codipack headers
26 #endif
27 
28 #ifdef _HAVE_AD_
31 #endif
32 
33 int min(int a,int b);
34 int max(int a,int b);
35 void BrentSearch(IssmDouble** pJ,OptPars optpars,IssmDouble* X0,IssmDouble (*f)(IssmDouble*,void*),IssmDouble (*g)(IssmDouble**,IssmDouble*,void*),void* usr);
36 void cross(IssmDouble *result,IssmDouble*vector1,IssmDouble*vector2);
38 int cubic(IssmDouble a, IssmDouble b, IssmDouble c, IssmDouble d,IssmDouble X[3], int *num);
40 IssmDouble* p_polynomial_value ( int m, int n, IssmDouble* x);
41 
44 
45 #endif //ifndef _NUMERICS_H_
IssmDouble
double IssmDouble
Definition: types.h:37
types.h
prototypes for types.h
min
IssmDouble min(IssmDouble a, IssmDouble b)
Definition: extrema.cpp:14
recast.h
max
IssmDouble max(IssmDouble a, IssmDouble b)
Definition: extrema.cpp:24
OptPars.h
place holder for optimization parameters
alpha
IssmDouble alpha(IssmDouble x, IssmDouble y, IssmDouble z, int testid)
Definition: fsanalyticals.cpp:221
OptPars
Definition: OptPars.h:10
legendre
IssmDouble legendre(IssmDouble Pn1, IssmDouble Pn2, IssmDouble x, int n)
GaussPoints.h
ODE1
IssmDouble ODE1(IssmDouble alpha, IssmDouble beta, IssmDouble Si, IssmDouble dt, int method)
Definition: ODE1.cpp:5
isnan.h
XZvectorsToCoordinateSystem
void XZvectorsToCoordinateSystem(IssmDouble *T, IssmDouble *xzvectors)
Definition: XZvectorsToCoordinateSystem.cpp:8
p_polynomial_value
IssmDouble * p_polynomial_value(int m, int n, IssmDouble *x)
Definition: legendre.cpp:142
cross
void cross(IssmDouble *result, IssmDouble *vector1, IssmDouble *vector2)
Definition: cross.cpp:13
constants.h
prototypes for constants.h
BrentSearch
void BrentSearch(IssmDouble **pJ, OptPars optpars, IssmDouble *X0, IssmDouble(*f)(IssmDouble *, void *), IssmDouble(*g)(IssmDouble **, IssmDouble *, void *), void *usr)
Definition: BrentSearch.cpp:23
Verbosity.h
IssmPDouble
IssmDouble IssmPDouble
Definition: types.h:38
NewtonSolveDnorm
int NewtonSolveDnorm(IssmDouble *pdnorm, IssmDouble c1, IssmDouble c2, IssmDouble c3, IssmDouble n, IssmDouble dnorm)
Definition: NewtonSolveDnorm.cpp:5
cubic
int cubic(IssmDouble a, IssmDouble b, IssmDouble c, IssmDouble d, IssmDouble X[3], int *num)
Definition: cubic.cpp:21