proteus
1.8.1
C/C++/Fortran libraries
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