proteus  1.8.1
C/C++/Fortran libraries
MCorr.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 "MCorr.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 using pybind11::return_value_policy;
21 
22 PYBIND11_MODULE(cMCorr, m)
23 {
24  xt::import_numpy();
25 
26  py::class_<MCorr_base>(m, "cMCorr_base")
28  .def("calculateResidual" , &MCorr_base::calculateResidual )
29  .def("calculateJacobian" , &MCorr_base::calculateJacobian )
30  .def("elementSolve" , &MCorr_base::elementSolve )
31  .def("elementConstantSolve" , &MCorr_base::elementConstantSolve )
32  .def("globalConstantRJ" , &MCorr_base::globalConstantRJ, return_value_policy::take_ownership)
33  .def("calculateMass" , &MCorr_base::calculateMass, return_value_policy::take_ownership)
34  .def("setMassQuadrature" , &MCorr_base::setMassQuadrature )
35  .def("FCTStep" , &MCorr_base::FCTStep )
36  .def("calculateMassMatrix" , &MCorr_base::calculateMassMatrix )
37  .def("setMassQuadratureEdgeBasedStabilizationMethods" , &MCorr_base::setMassQuadratureEdgeBasedStabilizationMethods );
38 }
proteus::MCorr_base
Definition: MCorr.h:24
init
void init(void)
MCorr.h
PYBIND11_MODULE
PYBIND11_MODULE(cMCorr, m)
Definition: MCorr.cpp:22
proteus::newMCorr
MCorr_base * newMCorr(int nSpaceIn, int nQuadraturePoints_elementIn, int nDOF_mesh_trial_elementIn, int nDOF_trial_elementIn, int nDOF_test_elementIn, int nQuadraturePoints_elementBoundaryIn, int CompKernelFlag)
Definition: MCorr.h:2115