diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index 18f0ee0f..87c436f7 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -576,12 +576,12 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) else self->SendRecvMesh(); return self; }, py::arg("comm")) - .def("Receive", [](NgMPI_Comm comm) { + .def_static("Receive", [](NgMPI_Comm comm) -> shared_ptr { auto mesh = make_shared(); mesh->SetCommunicator(comm); mesh->SendRecvMesh(); return mesh; - }) + }, py::arg("comm")) .def("Load", FunctionPointer ([](shared_ptr self, const string & filename) {