Skip to content
Snippets Groups Projects
Commit 26238ed9 authored by Rene Halver's avatar Rene Halver
Browse files

fixed passing of communicator to balancing object

parent 6f38be6c
Branches
No related tags found
No related merge requests found
Pipeline #22021 passed
......@@ -349,6 +349,7 @@ template <class T, class W> void ALL<T,W>::set_communicator(MPI_Comm comm)
if (MPI_Topo_test(comm, &comm_type) == MPI_CART)
{
communicator = comm;
balancer->set_communicator(communicator);
}
else
{
......@@ -389,6 +390,7 @@ template <class T, class W> void ALL<T,W>::set_communicator(MPI_Comm comm)
// transform temporary communicator to cartesian communicator
MPI_Cart_create(temp_comm, balancer->get_dimension(), proc_grid_dim.data(), periods.data(), 0, &communicator);
balancer->set_communicator(communicator);
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment