1 #include "pybind11/pybind11.h"
2 #include "pybind11/stl_bind.h"
4 #define FORCE_IMPORT_ARRAY
7 namespace py = pybind11;
10 #if defined(__GNUC__) && !defined(__clang__)
13 inline void define_allocators()
15 std::allocator<int> a0;
16 std::allocator<double> a1;
25 py::class_<RANS2P_IB_base>(m,
"cRANS2P_IB_base")
27 .def(
"calculateResidual" , &RANS2P_IB_base::calculateResidual )
28 .def(
"calculateBeams" , &RANS2P_IB_base::calculateBeams )
29 .def(
"calculateJacobian" , &RANS2P_IB_base::calculateJacobian )
30 .def(
"calculateForce" , &RANS2P_IB_base::calculateForce )
31 .def(
"calculateVelocityAverage", &RANS2P_IB_base::calculateVelocityAverage);