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]
|
&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]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user