MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / freePstreamCommunicator

Function freePstreamCommunicator

src/Pstream/mpi/UPstream.C:464–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462
463
464void Foam::UPstream::freePstreamCommunicator(const label communicator)
465{
466 if (communicator != UPstream::worldComm)
467 {
468 if (PstreamGlobals::MPICommunicators_[communicator] != MPI_COMM_NULL)
469 {
470 // Free communicator. Sets communicator to MPI_COMM_NULL
471 MPI_Comm_free(&PstreamGlobals::MPICommunicators_[communicator]);
472 }
473 if (PstreamGlobals::MPIGroups_[communicator] != MPI_GROUP_NULL)
474 {
475 // Free greoup. Sets group to MPI_GROUP_NULL
476 MPI_Group_free(&PstreamGlobals::MPIGroups_[communicator]);
477 }
478 }
479}
480
481
482Foam::label Foam::UPstream::nRequests()

Callers 2

exitFunction · 0.70
freeCommunicatorFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected