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

Function checkCommunicator

src/Pstream/mpi/PstreamGlobals.C:67–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65//! \endcond
66
67void PstreamGlobals::checkCommunicator
68(
69 const label comm,
70 const label otherProcNo
71)
72{
73 if
74 (
75 comm < 0
76 || comm >= PstreamGlobals::MPICommunicators_.size()
77 )
78 {
79 FatalErrorInFunction
80 << "otherProcNo:" << otherProcNo << " : illegal communicator "
81 << comm << endl
82 << "Communicator should be within range 0.."
83 << PstreamGlobals::MPICommunicators_.size()-1 << abort(FatalError);
84 }
85}
86
87
88// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

Callers 1

writeFunction · 0.85

Calls 2

abortFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected