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
c
modules
DistanceToMaskBoundaryx
DistanceToMaskBoundaryx.cpp
Go to the documentation of this file.
1
4
#ifdef HAVE_CONFIG_H
5
#include <config.h>
6
#else
7
#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
8
#endif
9
10
#include "
./DistanceToMaskBoundaryx.h
"
11
12
int
DistanceToMaskBoundaryx
(
IssmDouble
** pdistance,
IssmDouble
* x,
IssmDouble
* y,
IssmDouble
* mask,
int
nods) {
13
14
/*output: */
15
IssmDouble
* distance;
16
17
/*initialize: */
18
distance=xNew<IssmDouble>(nods);
19
20
/*initialize thread parameters: */
21
DistanceToMaskBoundaryxThreadStruct
gate;
22
gate.
distance
= distance;
23
gate.
x
= x;
24
gate.
y
= y;
25
gate.
mask
= mask;
26
gate.
nods
= nods;
27
28
/*launch the thread manager with DistanceToMaskBoundaryxt as a core: */
29
LaunchThread
(
DistanceToMaskBoundaryxt
,(
void
*)&gate,_NUMTHREADS_);
30
31
/*Assign output pointers: */
32
*pdistance=distance;
33
34
return
1;
35
}
IssmDouble
double IssmDouble
Definition:
types.h:37
LaunchThread
void LaunchThread(void *function(void *), void *gate, int num_threads)
Definition:
LaunchThread.cpp:25
DistanceToMaskBoundaryx.h
DistanceToMaskBoundaryxt
void * DistanceToMaskBoundaryxt(void *vDistanceToMaskBoundaryxThreadStruct)
Definition:
DistanceToMaskBoundaryxt.cpp:13
DistanceToMaskBoundaryxThreadStruct::y
IssmDouble * y
Definition:
DistanceToMaskBoundaryx.h:17
DistanceToMaskBoundaryxThreadStruct::distance
IssmDouble * distance
Definition:
DistanceToMaskBoundaryx.h:15
DistanceToMaskBoundaryx
int DistanceToMaskBoundaryx(IssmDouble **pdistance, IssmDouble *x, IssmDouble *y, IssmDouble *mask, int nods)
Definition:
DistanceToMaskBoundaryx.cpp:12
DistanceToMaskBoundaryxThreadStruct::mask
IssmDouble * mask
Definition:
DistanceToMaskBoundaryx.h:18
DistanceToMaskBoundaryxThreadStruct::nods
int nods
Definition:
DistanceToMaskBoundaryx.h:14
DistanceToMaskBoundaryxThreadStruct::x
IssmDouble * x
Definition:
DistanceToMaskBoundaryx.h:16
DistanceToMaskBoundaryxThreadStruct
Definition:
DistanceToMaskBoundaryx.h:12
Generated on Thu Jul 2 2020 08:09:19 for Ice Sheet System Model by
1.8.19