proteus 1.9.0
C/C++/Fortran libraries
Loading...
Searching...
No Matches
AddedMass.cpp
Go to the documentation of this file.
1#define FORCE_IMPORT_ARRAY
2#include "AddedMass.h"
3
4namespace py = pybind11;
5
6namespace xt
7{
8#if defined(__GNUC__) && !defined(__clang__)
9 namespace workaround
10 {
11 inline void complex_allocator()
12 {
13 std::allocator<int> ai;
14 std::allocator<double> ad;
15 }
16 }
17#endif
18}
19
20PYBIND11_MODULE(cAddedMass, m)
21{
24
25 xt::import_numpy();
26
27 py::class_<cppAddedMass_base>(m, "cppAddedMass_base")
28 .def("calculateResidual", &cppAddedMass_base::calculateResidual)
29 .def("calculateJacobian", &cppAddedMass_base::calculateJacobian);
30
31 m.def("newAddedMass", newAddedMass);
32}
PYBIND11_MODULE(cADR, m)
Definition ADR.cpp:21
cppAddedMass_base * newAddedMass(int nSpaceIn, int nQuadraturePoints_elementIn, int nDOF_mesh_trial_elementIn, int nDOF_trial_elementIn, int nDOF_test_elementIn, int nQuadraturePoints_elementBoundaryIn, int CompKernelFlag)
Definition AddedMass.h:739