PSCF v1.3
|
Identifies whether this processor may do file I/O. More...
#include <MpiFileIo.h>
Public Member Functions | |
MpiFileIo () | |
Constructor. | |
MpiFileIo (const MpiFileIo &other) | |
Copy constructor. | |
bool | isIoProcessor () const |
Can this processor do file I/O ? |
Identifies whether this processor may do file I/O.
The return value of isIoProcessor() indicates whether this processor can read and write to file. If the the class is compiled with UTIL_MPI not defined, then isIoProcessor() always returns true. If the class is compiled with UTIL_MPI defined, then this method returns true if either: (1) A communicator has been set and this processor has rank 0 within that communicator, or (2) No communicator has been set.
When compiled with UTIL_MPI defined, an MpiFileIo object has a pointer to an MPI communiciator, and provides methods to set and unset (nullify) the associated communicator.
Definition at line 35 of file MpiFileIo.h.
Util::MpiFileIo::MpiFileIo | ( | ) |
Constructor.
Definition at line 18 of file MpiFileIo.cpp.
Referenced by MpiFileIo(), Util::ParamComponent::ParamComponent(), and Util::ParamComponent::ParamComponent().
Util::MpiFileIo::MpiFileIo | ( | const MpiFileIo & | other | ) |
|
inline |
Can this processor do file I/O ?
Definition at line 94 of file MpiFileIo.h.
Referenced by Util::Manager< Data >::endReadManager(), Util::ParamComposite::load(), Util::Parameter::load(), Util::ParamComposite::loadOptional(), Util::Manager< Data >::loadParameters(), Util::Begin::readParam(), Util::Blank::readParam(), Util::End::readParam(), and Util::Parameter::readParam().