From fbe660f77580bab39aa048cefa84ed39c439f6ff Mon Sep 17 00:00:00 2001 From: Lukas Kogler Date: Wed, 17 Apr 2019 12:22:38 +0200 Subject: [PATCH] Receive Mesh from python as static method --- libsrc/meshing/python_mesh.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {