From 2bf722914fbdff144480dd90db6c930759f8103b Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 17 May 2018 01:48:26 +0200 Subject: [PATCH] Use Utilities::MPI::create_group instead of MPI_Comm_create --- source/base/process_grid.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/base/process_grid.cc b/source/base/process_grid.cc index 9f04655539..f75596fe17 100644 --- a/source/base/process_grid.cc +++ b/source/base/process_grid.cc @@ -170,9 +170,8 @@ namespace Utilities // Create the communicator based on the group // Note that on most cores the communicator will be MPI_COMM_NULL. - // FIXME: switch to MPI_Comm_create_group for MPI-3 so that only processes within the to-be subgroup call this - ierr = MPI_Comm_create(mpi_communicator, inactive_with_root_group, - &mpi_communicator_inactive_with_root); + ierr = Utilities::MPI::create_group(mpi_communicator, inactive_with_root_group, + 55, &mpi_communicator_inactive_with_root); AssertThrowMPI(ierr); ierr = MPI_Group_free(&all_group); -- 2.39.5