Commit 13740de4 authored by mattijs's avatar mattijs Committed by Mark Olesen
Browse files

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

parent 8f1bad1c
......@@ -1091,11 +1091,12 @@ void Foam::UPstream::allocatePstreamCommunicator
&PstreamGlobals::MPIGroups_[index]
);
// Create new communicator
MPI_Comm_create
// Create new communicator for this group
MPI_Comm_create_group
(
PstreamGlobals::MPICommunicators_[parentIndex],
PstreamGlobals::MPIGroups_[index],
Pstream::msgType(),
&PstreamGlobals::MPICommunicators_[index]
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment