proteus  1.8.1
C/C++/Fortran libraries
VOS3P.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 "VOS3P.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;
20 
21 PYBIND11_MODULE(cVOS3P, m)
22 {
23  xt::import_numpy();
24 
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);
33 }
proteus::newVOS3P
cppVOS3P_base * newVOS3P(int nSpaceIn, int nQuadraturePoints_elementIn, int nDOF_mesh_trial_elementIn, int nDOF_trial_elementIn, int nDOF_test_elementIn, int nQuadraturePoints_elementBoundaryIn, int CompKernelFlag)
Definition: VOS3P.h:2466
init
void init(void)
VOS3P.h
proteus::cppVOS3P_base
Definition: VOS3P.h:38
PYBIND11_MODULE
PYBIND11_MODULE(cVOS3P, m)
Definition: VOS3P.cpp:21