proteus 1.9.0
C/C++/Fortran libraries
Loading...
Searching...
No Matches
NCLS3P.cpp
Go to the documentation of this file.
1#define FORCE_IMPORT_ARRAY
2#include "NCLS3P.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(cNCLS3P, m)
21{
24
25 xt::import_numpy();
26
27 py::class_<cppNCLS3P_base>(m, "cppNCLS3P_base")
28 .def("calculateResidual", &cppNCLS3P_base::calculateResidual)
29 .def("calculateJacobian", &cppNCLS3P_base::calculateJacobian)
30 .def("calculateWaterline", &cppNCLS3P_base::calculateWaterline);
31
32 m.def("newNCLS3P", newNCLS3P);
33}
34
PYBIND11_MODULE(cADR, m)
Definition ADR.cpp:21
cppNCLS3P_base * newNCLS3P(int nSpaceIn, int nQuadraturePoints_elementIn, int nDOF_mesh_trial_elementIn, int nDOF_trial_elementIn, int nDOF_test_elementIn, int nQuadraturePoints_elementBoundaryIn, int CompKernelFlag)
Definition NCLS3P.h:1330