From 5bec67f902662f0e6d9f73abd91b1fae0c0dd217 Mon Sep 17 00:00:00 2001
From: Anna Wellmann <a.wellmann@tu-braunschweig.de>
Date: Thu, 27 Apr 2023 17:35:17 +0200
Subject: [PATCH] Adapt python bindings

---
 pythonbindings/src/gpu/submodules/communicator.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/pythonbindings/src/gpu/submodules/communicator.cpp b/pythonbindings/src/gpu/submodules/communicator.cpp
index 0230caf19..3b0550e43 100644
--- a/pythonbindings/src/gpu/submodules/communicator.cpp
+++ b/pythonbindings/src/gpu/submodules/communicator.cpp
@@ -31,7 +31,7 @@
 //! \author Henry Korb
 //=======================================================================================
 #include <pybind11/pybind11.h>
-#include <gpu/VirtualFluids_GPU/Communication/Communicator.h>
+#include <gpu/VirtualFluids_GPU/Communication/MpiCommunicator.h>
 
 namespace communicator
 {
@@ -39,9 +39,9 @@ namespace communicator
 
     void makeModule(py::module_ &parentModule)
     {
-        py::class_<vf::gpu::Communicator, std::unique_ptr<vf::gpu::Communicator, py::nodelete>>(parentModule, "Communicator")
-        .def_static("get_instance", &vf::gpu::Communicator::getInstance, py::return_value_policy::reference)
-        .def("get_number_of_process", &vf::gpu::Communicator::getNumberOfProcess)
-        .def("get_pid", &vf::gpu::Communicator::getPID);
+        py::class_<vf::gpu::MpiCommunicator, std::unique_ptr<vf::gpu::MpiCommunicator, py::nodelete>>(parentModule, "Communicator")
+        .def_static("get_instance", &vf::gpu::MpiCommunicator::getInstance, py::return_value_policy::reference)
+        .def("get_number_of_process", &vf::gpu::MpiCommunicator::getNumberOfProcess)
+        .def("get_pid", &vf::gpu::MpiCommunicator::getPID);
     }
 }
\ No newline at end of file
-- 
GitLab