proteus  1.8.1
C/C++/Fortran libraries
MCorr3P.cpp
Go to the documentation of this file.
1 #define FORCE_IMPORT_ARRAY
2 #include "MCorr3P.h"
3 
4 namespace xt
5 {
6 #if defined(__GNUC__) && !defined(__clang__)
7  namespace workaround
8  {
9  inline void complex_allocator()
10  {
11  std::allocator<int> ai;
12  std::allocator<double> ad;
13  }
14  }
15 #endif
16 }
17 
18 namespace py = pybind11;
19 
20 PYBIND11_MODULE(cMCorr3P, m)
21 {
23  using proteus::newMCorr3P;
24 
25  xt::import_numpy();
26 
27  py::class_<cppMCorr3P_base>(m, "cppMCorr3P_base")
28  .def("calculateResidual", &cppMCorr3P_base::calculateResidual)
29  .def("calculateJacobian", &cppMCorr3P_base::calculateJacobian)
30  .def("elementSolve", &cppMCorr3P_base::elementSolve)
31  .def("elementConstantSolve", &cppMCorr3P_base::elementConstantSolve)
32  .def("globalConstantRJ", &cppMCorr3P_base::globalConstantRJ)
33  .def("calculateMass", &cppMCorr3P_base::calculateMass)
34  .def("setMassQuadrature", &cppMCorr3P_base::setMassQuadrature)
35  .def("calculateStiffnessMatrix", &cppMCorr3P_base::calculateStiffnessMatrix);
36 
37  m.def("newMCorr3P", newMCorr3P);
38 }
MCorr3P.h
xt
Definition: AddedMass.cpp:7
proteus::newMCorr3P
cppMCorr3P_base * newMCorr3P(int nSpaceIn, int nQuadraturePoints_elementIn, int nDOF_mesh_trial_elementIn, int nDOF_trial_elementIn, int nDOF_test_elementIn, int nQuadraturePoints_elementBoundaryIn, int CompKernelFlag)
Definition: MCorr3P.h:1741
PYBIND11_MODULE
PYBIND11_MODULE(cMCorr3P, m)
Definition: MCorr3P.cpp:20
proteus::cppMCorr3P_base
Definition: MCorr3P.h:17