proteus  1.8.1
C/C++/Fortran libraries
AddedMass.cpp
Go to the documentation of this file.
1 #define FORCE_IMPORT_ARRAY
2 #include "AddedMass.h"
3 
4 namespace py = pybind11;
5 
6 namespace 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 
20 PYBIND11_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 }
proteus::newAddedMass
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
AddedMass.h
xt
Definition: AddedMass.cpp:7
proteus::cppAddedMass_base
Definition: AddedMass.h:16
PYBIND11_MODULE
PYBIND11_MODULE(cAddedMass, m)
Definition: AddedMass.cpp:20