proteus 1.9.0
C/C++/Fortran libraries
Loading...
Searching...
No Matches
MCorr3P.cpp
Go to the documentation of this file.
1#define FORCE_IMPORT_ARRAY
2#include "MCorr3P.h"
3
4namespace 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
18namespace py = pybind11;
19
20PYBIND11_MODULE(cMCorr3P, m)
21{
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}
PYBIND11_MODULE(cADR, m)
Definition ADR.cpp:21
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