1 #include "pybind11/pybind11.h"
2 #include "pybind11/stl_bind.h"
4 #define FORCE_IMPORT_ARRAY
7 #if defined(__GNUC__) && !defined(__clang__)
10 inline void define_allocators()
12 std::allocator<int> a0;
13 std::allocator<double> a1;
18 namespace py = pybind11;
20 using pybind11::return_value_policy;
26 py::class_<MCorr_base>(m,
"cMCorr_base")
28 .def(
"calculateResidual" , &MCorr_base::calculateResidual )
29 .def(
"calculateJacobian" , &MCorr_base::calculateJacobian )
30 .def(
"elementSolve" , &MCorr_base::elementSolve )
31 .def(
"elementConstantSolve" , &MCorr_base::elementConstantSolve )
32 .def(
"globalConstantRJ" , &MCorr_base::globalConstantRJ, return_value_policy::take_ownership)
33 .def(
"calculateMass" , &MCorr_base::calculateMass, return_value_policy::take_ownership)
34 .def(
"setMassQuadrature" , &MCorr_base::setMassQuadrature )
35 .def(
"FCTStep" , &MCorr_base::FCTStep )
36 .def(
"calculateMassMatrix" , &MCorr_base::calculateMassMatrix )
37 .def(
"setMassQuadratureEdgeBasedStabilizationMethods" , &MCorr_base::setMassQuadratureEdgeBasedStabilizationMethods );