We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 448811a commit 5495e90Copy full SHA for 5495e90
lib/bindings.cc
@@ -20,7 +20,7 @@ template <typename Number>
20
void bind_vector(pybind11::module& module) {
21
typedef dealii::Vector<Number> Vector;
22
typedef typename Vector::size_type size_type;
23
- py::class_<Vector>(module, "Vector")
+ py::class_<Vector>(module, "Vector", py::buffer_protocol())
24
.def(py::init<>())
25
.def(py::init<const Vector&>())
26
.def(py::init<const size_type>())
lib/py_elasticity.cc
@@ -17,6 +17,7 @@
17
namespace py = pybind11;
18
19
PYBIND11_MODULE(dealii_elasticity, m) {
+ py::module::import("pymor_dealii_bindings");
m.doc() = "deal.II elasticity example";
0 commit comments