proteus
1.8.1
C/C++/Fortran libraries
Users
cekees
proteus
proteus
ADR.cpp
Go to the documentation of this file.
1
#include "pybind11/pybind11.h"
2
#include "pybind11/stl_bind.h"
3
4
#define FORCE_IMPORT_ARRAY
5
#include "
ADR.h
"
6
7
#if defined(__GNUC__) && !defined(__clang__)
8
namespace
workaround
9
{
10
inline
void
define_allocators()
11
{
12
std::allocator<int> a0;
13
std::allocator<double> a1;
14
}
15
}
16
#endif
17
18
namespace
py = pybind11;
19
using
proteus::cADR_base
;
20
21
PYBIND11_MODULE
(cADR, m)
22
{
23
xt::import_numpy();
24
25
py::class_<cADR_base>(m,
"cADR_base"
)
26
.def(
py::init
(&
proteus::newADR
))
27
.def(
"calculateResidual"
, &cADR_base::calculateResidual)
28
.def(
"calculateJacobian"
, &cADR_base::calculateJacobian);
29
}
PYBIND11_MODULE
PYBIND11_MODULE(cADR, m)
Definition:
ADR.cpp:21
proteus::newADR
cADR_base * newADR(int nSpaceIn, int nQuadraturePoints_elementIn, int nDOF_mesh_trial_elementIn, int nDOF_trial_elementIn, int nDOF_test_elementIn, int nQuadraturePoints_elementBoundaryIn, int CompKernelFlag)
Definition:
ADR.h:1715
init
void init(void)
ADR.h
proteus::cADR_base
Definition:
ADR.h:22
Generated on Fri Jul 1 2022 11:15:12 for proteus by
1.8.20