35 UPstream::Communicator(MPI_COMM_NULL)
47 <<
"Illegal communicator " << comm <<
nl 48 <<
"Should be within range [0," 52 return UPstream::Communicator(MPI_COMM_NULL);
69 *
this = UPstream::Communicator(MPI_COMM_NULL);
An opaque wrapper for MPI_Comm with a vendor-independent representation without any <mpi...
constexpr char nl
The newline '\n' character (0x0a)
DynamicList< MPI_Comm > MPICommunicators_
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool good() const noexcept
True if not equal to MPI_COMM_NULL.
Communicator() noexcept
Default construct as MPI_COMM_NULL.
static Communicator lookup(const label comm)
Transcribe internally indexed communicator to wrapped value.
#define WarningInFunction
Report a warning using Foam::Warning.
void reset() noexcept
Reset to default constructed value (MPI_COMM_NULL)
static std::enable_if< std::is_pointer< Type >::value, Type >::type to_mpi(const UPstream::Communicator &arg) noexcept