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;
25 py::class_<cppVOS3P_base>(m,
"cppVOS3P_base")
27 .def(
"calculateResidual", &cppVOS3P_base::calculateResidual)
28 .def(
"calculateJacobian", &cppVOS3P_base::calculateJacobian)
29 .def(
"FCTStep", &cppVOS3P_base::FCTStep)
30 .def(
"kth_FCT_step", &cppVOS3P_base::kth_FCT_step)
31 .def(
"calculateResidual_entropy_viscosity", &cppVOS3P_base::calculateResidual_entropy_viscosity)
32 .def(
"calculateMassMatrix", &cppVOS3P_base::calculateMassMatrix);