proteus
1.9.0
C/C++/Fortran libraries
Toggle main menu visibility
Loading...
Searching...
No Matches
work
cekees
proteus
proteus
mprans
AddedMass.cpp
Go to the documentation of this file.
1
#define FORCE_IMPORT_ARRAY
2
#include "
AddedMass.h
"
3
4
namespace
py = pybind11;
5
6
namespace
xt
7
{
8
#if defined(__GNUC__) && !defined(__clang__)
9
namespace
workaround
10
{
11
inline
void
complex_allocator()
12
{
13
std::allocator<int> ai;
14
std::allocator<double> ad;
15
}
16
}
17
#endif
18
}
19
20
PYBIND11_MODULE
(cAddedMass, m)
21
{
22
using
proteus::cppAddedMass_base
;
23
using
proteus::newAddedMass
;
24
25
xt::import_numpy();
26
27
py::class_<cppAddedMass_base>(m,
"cppAddedMass_base"
)
28
.def(
"calculateResidual"
, &cppAddedMass_base::calculateResidual)
29
.def(
"calculateJacobian"
, &cppAddedMass_base::calculateJacobian);
30
31
m.def(
"newAddedMass"
, newAddedMass);
32
}
PYBIND11_MODULE
PYBIND11_MODULE(cADR, m)
Definition
ADR.cpp:21
AddedMass.h
proteus::cppAddedMass_base
Definition
AddedMass.h:16
proteus::newAddedMass
cppAddedMass_base * newAddedMass(int nSpaceIn, int nQuadraturePoints_elementIn, int nDOF_mesh_trial_elementIn, int nDOF_trial_elementIn, int nDOF_test_elementIn, int nQuadraturePoints_elementBoundaryIn, int CompKernelFlag)
Definition
AddedMass.h:739
xt
Definition
AddedMass.cpp:7
Generated on
for proteus by
1.18.0