1 #ifndef UTIL_MPI_FILE_IO_H 2 #define UTIL_MPI_FILE_IO_H 81 MPI::Intracomm* communicatorPtr_;
93 {
return isIoProcessor_; }
100 {
return (communicatorPtr_ != 0); }
107 assert(communicatorPtr_);
108 return *communicatorPtr_;
void setIoCommunicator(MPI::Intracomm &communicator)
Set the communicator.
File containing preprocessor macros for error handling.
Identifies whether this processor may do file I/O.
MPI::Intracomm & ioCommunicator() const
Get the MPI communicator by reference.
Utility classes for scientific computation.
bool isIoProcessor() const
Can this processor do file I/O ?
bool hasIoCommunicator() const
Does this object have an associated MPI communicator?
void clearCommunicator()
Clear (nullify) the communicator.