Skip to content
Snippets Groups Projects
Commit 15a80f55 authored by Anna Wellmann's avatar Anna Wellmann
Browse files

Adapt Python bindings to renamed communicator

parent 48ba583c
No related branches found
No related tags found
1 merge request!236Adapt Python bindings to renamed communicator
...@@ -132,10 +132,10 @@ class BoundaryConditionFactory: ...@@ -132,10 +132,10 @@ class BoundaryConditionFactory:
def set_stress_boundary_condition(self, boundary_condition_type) -> None: ... def set_stress_boundary_condition(self, boundary_condition_type) -> None: ...
def set_velocity_boundary_condition(self, boundary_condition_type) -> None: ... def set_velocity_boundary_condition(self, boundary_condition_type) -> None: ...
class Communicator: class MpiCommunicator:
def __init__(self, *args, **kwargs) -> None: ... def __init__(self, *args, **kwargs) -> None: ...
@staticmethod @staticmethod
def get_instance() -> Communicator: ... def get_instance() -> MpiCommunicator: ...
def get_number_of_process(self) -> int: ... def get_number_of_process(self) -> int: ...
def get_pid(self) -> int: ... def get_pid(self) -> int: ...
......
...@@ -39,7 +39,7 @@ namespace communicator ...@@ -39,7 +39,7 @@ namespace communicator
void makeModule(py::module_ &parentModule) void makeModule(py::module_ &parentModule)
{ {
py::class_<vf::gpu::MpiCommunicator, std::unique_ptr<vf::gpu::MpiCommunicator, py::nodelete>>(parentModule, "Communicator") py::class_<vf::gpu::MpiCommunicator, std::unique_ptr<vf::gpu::MpiCommunicator, py::nodelete>>(parentModule, "MpiCommunicator")
.def_static("get_instance", &vf::gpu::MpiCommunicator::getInstance, py::return_value_policy::reference) .def_static("get_instance", &vf::gpu::MpiCommunicator::getInstance, py::return_value_policy::reference)
.def("get_number_of_process", &vf::gpu::MpiCommunicator::getNumberOfProcess) .def("get_number_of_process", &vf::gpu::MpiCommunicator::getNumberOfProcess)
.def("get_pid", &vf::gpu::MpiCommunicator::getPID); .def("get_pid", &vf::gpu::MpiCommunicator::getPID);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment