mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: mpi: use group-local communicator allocation. Fixes #2158
This commit is contained in:
@ -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]
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user