proteus
1.9.0
C/C++/Fortran libraries
Toggle main menu visibility
Loading...
Searching...
No Matches
work
cekees
proteus
proteus
mprans
RDLS.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 "
RDLS.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::RDLS_base
;
20
using
pybind11::return_value_policy;
21
22
PYBIND11_MODULE
(cRDLS, m)
23
{
24
xt::import_numpy();
25
26
py::class_<RDLS_base>(m,
"cRDLS_base"
)
27
.def(py::init(&
proteus::newRDLS
))
28
.def(
"calculateResidual"
, &
RDLS_base::calculateResidual
)
29
.def(
"calculateJacobian"
, &
RDLS_base::calculateJacobian
)
30
.def(
"calculateResidual_ellipticRedist"
, &
RDLS_base::calculateResidual_ellipticRedist
)
31
.def(
"calculateJacobian_ellipticRedist"
, &
RDLS_base::calculateJacobian_ellipticRedist
)
32
.def(
"normalReconstruction"
, &
RDLS_base::normalReconstruction
)
33
.def(
"calculateMetricsAtEOS"
, &
RDLS_base::calculateMetricsAtEOS
, return_value_policy::take_ownership);
34
}
PYBIND11_MODULE
PYBIND11_MODULE(cADR, m)
Definition
ADR.cpp:21
RDLS.h
RDLS_base::normalReconstruction
virtual void normalReconstruction(arguments_dict &args)=0
RDLS_base::calculateJacobian_ellipticRedist
virtual void calculateJacobian_ellipticRedist(arguments_dict &args, bool useExact)=0
RDLS_base::calculateJacobian
virtual void calculateJacobian(arguments_dict &args, bool useExact)=0
RDLS_base::calculateMetricsAtEOS
virtual std::tuple< double, double, double > calculateMetricsAtEOS(arguments_dict &args)=0
RDLS_base::calculateResidual_ellipticRedist
virtual void calculateResidual_ellipticRedist(arguments_dict &args, bool useExact)=0
RDLS_base::calculateResidual
virtual void calculateResidual(arguments_dict &args, bool useExact)=0
proteus::RDLS_base
Definition
RDLS.h:35
proteus::newRDLS
RDLS_base * newRDLS(int nSpaceIn, int nQuadraturePoints_elementIn, int nDOF_mesh_trial_elementIn, int nDOF_trial_elementIn, int nDOF_test_elementIn, int nQuadraturePoints_elementBoundaryIn, int CompKernelFlag)
Definition
RDLS.h:1856
Generated on
for proteus by
1.18.0