Loading [MathJax]/extensions/TeX-AMS-MML_HTMLorMML.js
proteus
1.8.1
C/C++/Fortran libraries
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
b
c
d
e
f
g
h
i
k
n
p
r
s
w
x
y
z
Functions
_
b
c
d
e
f
g
h
i
k
n
p
r
s
w
x
y
z
Variables
Typedefs
Classes
Class List
Class Index
Class Hierarchy
Class Members
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
r
s
t
u
v
w
x
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Files
File List
File Members
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
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
h
i
k
l
m
n
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Macros
Modules
Users
cekees
proteus
proteus
mprans
NCLS3P.cpp
Go to the documentation of this file.
1
#define FORCE_IMPORT_ARRAY
2
#include "
NCLS3P.h
"
3
4
namespace
xt
5
{
6
#if defined(__GNUC__) && !defined(__clang__)
7
namespace
workaround
8
{
9
inline
void
complex_allocator()
10
{
11
std::allocator<int> ai;
12
std::allocator<double> ad;
13
}
14
}
15
#endif
16
}
17
18
namespace
py = pybind11;
19
20
PYBIND11_MODULE
(cNCLS3P, m)
21
{
22
using
proteus::cppNCLS3P_base
;
23
using
proteus::newNCLS3P
;
24
25
xt::import_numpy();
26
27
py::class_<cppNCLS3P_base>(m,
"cppNCLS3P_base"
)
28
.def(
"calculateResidual"
, &cppNCLS3P_base::calculateResidual)
29
.def(
"calculateJacobian"
, &cppNCLS3P_base::calculateJacobian)
30
.def(
"calculateWaterline"
, &cppNCLS3P_base::calculateWaterline);
31
32
m.def(
"newNCLS3P"
,
newNCLS3P
);
33
}
34
NCLS3P.h
proteus::newNCLS3P
cppNCLS3P_base * newNCLS3P(int nSpaceIn, int nQuadraturePoints_elementIn, int nDOF_mesh_trial_elementIn, int nDOF_trial_elementIn, int nDOF_test_elementIn, int nQuadraturePoints_elementBoundaryIn, int CompKernelFlag)
Definition:
NCLS3P.h:1330
xt
Definition:
AddedMass.cpp:7
proteus::cppNCLS3P_base
Definition:
NCLS3P.h:29
PYBIND11_MODULE
PYBIND11_MODULE(cNCLS3P, m)
Definition:
NCLS3P.cpp:20
Generated on Fri Jul 1 2022 11:17:39 for proteus by
1.8.20