From 78d047999308e3e2ac6c1b7f27331defd990de42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Tue, 25 Aug 2020 18:18:31 +0200 Subject: [PATCH] can convert to mpi4py - communicator --- libsrc/meshing/python_mesh.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index 64e3e0c8..07856c1c 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -122,6 +122,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) { return NgMPI_Comm(comm); })) + .def_property_readonly ("mpi4py", [] (NgMPI_Comm comm) { return mpi4py_comm(comm); }) #endif // NG_MPI4PY .def_property_readonly ("rank", &NgMPI_Comm::Rank) .def_property_readonly ("size", &NgMPI_Comm::Size)