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 py::return_value_policy;
26 py::class_<CLSVOF_base>(m,
"cCLSVOF_base")
28 .def(
"calculateResidual" , &CLSVOF_base::calculateResidual )
29 .def(
"calculateJacobian" , &CLSVOF_base::calculateJacobian )
30 .def(
"calculateMetricsAtEOS" , &CLSVOF_base::calculateMetricsAtEOS , return_value_policy::take_ownership)
31 .def(
"calculateMetricsAtETS" , &CLSVOF_base::calculateMetricsAtETS , return_value_policy::take_ownership)
32 .def(
"normalReconstruction" , &CLSVOF_base::normalReconstruction )
33 .def(
"calculateRhsL2Proj" , &CLSVOF_base::calculateRhsL2Proj )
34 .def(
"calculateLumpedMassMatrix", &CLSVOF_base::calculateLumpedMassMatrix)
35 .def(
"assembleSpinUpSystem" , &CLSVOF_base::assembleSpinUpSystem )
36 .def(
"FCTStep" , &CLSVOF_base::FCTStep );