| 462 | |
| 463 | |
| 464 | void 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 | |
| 482 | Foam::label Foam::UPstream::nRequests() |
no outgoing calls
no test coverage detected