Ice Sheet System Model
4.18
Code documentation
Main Page
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Related Functions
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Variables
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
v
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
src
wrappers
BamgMesher
BamgMesher.cpp
Go to the documentation of this file.
1
/*\file BamgMesher.c
2
*\brief: mesher that uses the bamg library
3
*/
4
#include "
./BamgMesher.h
"
5
6
void
BamgMesherUsage
(
void
){
/*{{{*/
7
_printf0_
(
"\n"
);
8
_printf0_
(
" usage: [bamgmesh,bamggeom]="
<<
__FUNCT__
<<
"(bamgmesh,bamggeom,bamgoptions)\n"
);
9
_printf0_
(
"\n"
);
10
}
/*}}}*/
11
WRAPPER
(BamgMesher_python){
12
13
/*Intermediary*/
14
BamgOpts
*bamgopts = NULL;
15
BamgMesh
*bamgmesh_in = NULL;
16
BamgGeom
*bamggeom_in = NULL;
17
BamgMesh
*bamgmesh_out = NULL;
18
BamgGeom
*bamggeom_out = NULL;
19
20
/*Boot module*/
21
MODULEBOOT();
22
23
/*checks on arguments on the matlab side: */
24
CHECKARGUMENTS(
NLHS
,
NRHS
,&
BamgMesherUsage
);
25
26
/*Initialize outputs*/
27
bamggeom_out=
new
BamgGeom
();
28
bamgmesh_out=
new
BamgMesh
();
29
30
/*Fetch inputs: */
31
FetchData
(&bamgopts,BAMGOPTIONS);
32
FetchData
(&bamggeom_in,BAMGGEOMIN);
33
FetchData
(&bamgmesh_in,BAMGMESHIN);
34
35
/*Call x layer*/
36
Bamgx
(bamgmesh_out,bamggeom_out,bamgmesh_in,bamggeom_in,bamgopts);
37
38
/*Generate output Matlab Structures*/
39
WriteData
(BAMGGEOMOUT,bamggeom_out);
40
WriteData
(BAMGMESHOUT,bamgmesh_out);
41
42
/*Free ressources: */
43
delete
bamgopts;
44
delete
bamggeom_in;
45
delete
bamggeom_out;
46
delete
bamgmesh_in;
47
delete
bamgmesh_out;
48
49
/*end module: */
50
MODULEEND();
51
}
_printf0_
#define _printf0_(StreamArgs)
Definition:
Print.h:29
WriteData
void WriteData(IssmPDouble **pmatrix, int *pnel, int *matrix, int M, int N)
Definition:
WriteJavascriptData.cpp:16
NRHS
#define NRHS
Definition:
BamgConvertMesh.h:52
BamgMesherUsage
void BamgMesherUsage(void)
Definition:
BamgMesher.cpp:6
BamgMesh
Definition:
BamgMesh.h:7
WRAPPER
WRAPPER(BamgMesher_python)
Definition:
BamgMesher.cpp:11
FetchData
void FetchData(char **pstring, char *stringin)
Definition:
FetchJavascriptData.cpp:16
__FUNCT__
#define __FUNCT__
Definition:
Chacox.h:43
BamgOpts
Definition:
BamgOpts.h:8
NLHS
#define NLHS
Definition:
BamgConvertMesh.h:50
BamgGeom
Definition:
BamgGeom.h:7
BamgMesher.h
Bamgx
int Bamgx(BamgMesh *bamgmesh_out, BamgGeom *bamggeom_out, BamgMesh *bamgmesh_in, BamgGeom *bamggeom_in, BamgOpts *bamgopts)
Definition:
Bamgx.cpp:12
Generated on Thu Jul 2 2020 08:09:22 for Ice Sheet System Model by
1.8.19