Skip to content
Snippets Groups Projects
Commit c88e9a06 authored by mattijs's avatar mattijs Committed by Mark OLESEN
Browse files

BUG: mpi: use group-local communicator allocation. Fixes #2158

parent 0fb02b46
No related branches found
No related tags found
No related merge requests found
...@@ -1091,11 +1091,12 @@ void Foam::UPstream::allocatePstreamCommunicator ...@@ -1091,11 +1091,12 @@ void Foam::UPstream::allocatePstreamCommunicator
&PstreamGlobals::MPIGroups_[index] &PstreamGlobals::MPIGroups_[index]
); );
// Create new communicator // Create new communicator for this group
MPI_Comm_create MPI_Comm_create_group
( (
PstreamGlobals::MPICommunicators_[parentIndex], PstreamGlobals::MPICommunicators_[parentIndex],
PstreamGlobals::MPIGroups_[index], PstreamGlobals::MPIGroups_[index],
Pstream::msgType(),
&PstreamGlobals::MPICommunicators_[index] &PstreamGlobals::MPICommunicators_[index]
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment