File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -150,10 +150,9 @@ void bind_sparse_matrix(pybind11::module& module) {
150150 .def (" cg_solve" , cg_solve);
151151}
152152
153- PYBIND11_PLUGIN (pymor_dealii_bindings) {
154- py:: module m ( " pymor_dealii_bindings " , " Python bindings for deal.II" ) ;
153+ PYBIND11_MODULE (pymor_dealii_bindings, m ) {
154+ m. doc () = " Python bindings for deal.II" ;
155155 py::class_<dealii::SparsityPattern>(m, " SparsityPattern" );
156156 bind_vector<double >(m);
157157 bind_sparse_matrix<double >(m);
158- return m.ptr ();
159158}
Original file line number Diff line number Diff line change 1616
1717namespace py = pybind11;
1818
19- PYBIND11_PLUGIN (dealii_elasticity) {
19+ PYBIND11_MODULE (dealii_elasticity, m ) {
2020
21- py:: module m ( " dealii_elasticity " , " deal.II elasticity example" ) ;
21+ m. doc () = " deal.II elasticity example" ;
2222
2323 py::class_<ElasticityExample>(m, " ElasticityExample" )
2424 .def (py::init<int >(), py::arg (" refine_steps" ) = 4u )
@@ -31,6 +31,4 @@ PYBIND11_PLUGIN(dealii_elasticity) {
3131 .def (" energy_norm" , &ElasticityExample::energy_norm)
3232 .def (" transfer_to" , &ElasticityExample::transfer_to)
3333 .def (" rhs" , &ElasticityExample::rhs, py::return_value_policy::reference_internal);
34-
35- return m.ptr ();
3634}
You can’t perform that action at this time.
0 commit comments