| 65 | //! \endcond |
| 66 | |
| 67 | void 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 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |