proteus  1.8.1
C/C++/Fortran libraries
GN_SW2DCV.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 "GN_SW2DCV.h"
6 
7 #if defined(__GNUC__) && !defined(__clang__)
8 namespace workaround {
9 inline void define_allocators() {
10  std::allocator<int> a0;
11  std::allocator<double> a1;
12 }
13 } // namespace workaround
14 #endif
15 
16 namespace py = pybind11;
18 using pybind11::return_value_policy;
19 
20 PYBIND11_MODULE(cGN_SW2DCV, m) {
21  xt::import_numpy();
22 
23  py::class_<GN_SW2DCV_base>(m, "cGN_SW2DCV_base")
25  .def("convexLimiting", &GN_SW2DCV_base::convexLimiting)
26  .def("calculateEdgeBasedCFL", &GN_SW2DCV_base::calculateEdgeBasedCFL,
27  return_value_policy::take_ownership)
28  .def("calculatePreStep", &GN_SW2DCV_base::calculatePreStep)
29  .def("calculateEV", &GN_SW2DCV_base::calculateEV)
30  .def("calculateBoundsAndHighOrderRHS",
31  &GN_SW2DCV_base::calculateBoundsAndHighOrderRHS)
32  .def("calculateResidual", &GN_SW2DCV_base::calculateResidual)
33  .def("calculateMassMatrix", &GN_SW2DCV_base::calculateMassMatrix)
34  .def("calculateLumpedMassMatrix",
35  &GN_SW2DCV_base::calculateLumpedMassMatrix);
36 }
GN_SW2DCV.h
proteus::GN_SW2DCV_base
Definition: GN_SW2DCV.h:98
init
void init(void)
proteus::newGN_SW2DCV
GN_SW2DCV_base * newGN_SW2DCV(int nSpaceIn, int nQuadraturePoints_elementIn, int nDOF_mesh_trial_elementIn, int nDOF_trial_elementIn, int nDOF_test_elementIn, int nQuadraturePoints_elementBoundaryIn, int CompKernelFlag)
Definition: GN_SW2DCV.h:3020
PYBIND11_MODULE
PYBIND11_MODULE(cGN_SW2DCV, m)
Definition: GN_SW2DCV.cpp:20