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

This commit is contained in:
mattijs
2021-07-15 11:23:39 +01:00
committed by Mark Olesen
parent 8f1bad1cb4
commit 13740de427

View File

@ -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]
); );