MPI implementation of the OPstreamImpl abstract base class. More...
#include <mpiPstream/mpiOPstreamImpl.H>
MPI implementation of the OPstreamImpl abstract base class.
Definition at line 55 of file mpiOPstreamImpl.H.
Public Member Functions | |
TypeName ("mpiOPstreamImpl") | |
mpiOPstreamImpl () | |
Construct null.
| |
virtual void | flush (const PstreamImpl::commsTypes commsType, const int toProcNo, const char *buf, const int bufPosition) |
Flush the buffer (used in OPstream::~OPstream())
| |
virtual bool | write (const PstreamImpl::commsTypes commsType, const int toProcNo, const char *buf, const std::streamsize bufSize) |
Write given buffer to given processor.
| |
virtual void | waitRequests () |
Non-blocking writes: wait until all have finished.
| |
virtual bool | finishedRequest (const label i) |
Non-blocking writes: has request i finished?
|
mpiOPstreamImpl | ( | ) | [inline]
|
Construct null.
Definition at line 75 of file mpiOPstreamImpl.H.
TypeName | ( | "mpiOPstreamImpl" | ) |
void flush | ( | const PstreamImpl::commsTypes | commsType, |
const int | toProcNo, | ||
const char * | buf, | ||
const int | bufPosition | ||
) | [virtual]
|
Flush the buffer (used in OPstream::~OPstream())
Implements OPstreamImpl.
Definition at line 49 of file mpiOPstreamImpl.C.
References Foam::abort(), Foam::FatalError, and FatalErrorIn.
bool write | ( | const PstreamImpl::commsTypes | commsType, |
const int | toProcNo, | ||
const char * | buf, | ||
const std::streamsize | bufSize | ||
) | [virtual]
|
Write given buffer to given processor.
Implements OPstreamImpl.
Definition at line 77 of file mpiOPstreamImpl.C.
References Foam::abort(), Foam::FatalError, FatalErrorIn, and Foam::PstreamGlobals::OPstream_outstandingRequests_.
void waitRequests | ( | ) | [virtual]
|
Non-blocking writes: wait until all have finished.
Implements OPstreamImpl.
Definition at line 141 of file mpiOPstreamImpl.C.
References Foam::endl(), FatalErrorIn, and Foam::PstreamGlobals::OPstream_outstandingRequests_.
bool finishedRequest | ( | const label | i ) | [virtual]
|
Non-blocking writes: has request i finished?
Implements OPstreamImpl.
Definition at line 166 of file mpiOPstreamImpl.C.
References Foam::abort(), Foam::FatalError, FatalErrorIn, Foam::nl, and Foam::PstreamGlobals::OPstream_outstandingRequests_.