FreeFOAM The Cross-Platform CFD Toolkit
mpiOPstreamImpl Class Reference

MPI implementation of the OPstreamImpl abstract base class. More...

#include <mpiPstream/mpiOPstreamImpl.H>


Detailed Description

MPI implementation of the OPstreamImpl abstract base class.

Source files

Definition at line 55 of file mpiOPstreamImpl.H.

+ Inheritance diagram for mpiOPstreamImpl:
+ Collaboration diagram for mpiOPstreamImpl:

List of all members.

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?
- Public Member Functions inherited from OPstreamImpl
 TypeName ("OPstreamImpl")
 declareRunTimeSelectionTable (autoPtr, OPstreamImpl, dictionary,(),())
 OPstreamImpl ()
 Construct null.

Additional Inherited Members

- Static Public Member Functions inherited from OPstreamImpl
static autoPtr< OPstreamImplNew ()
 Return a reference to the selected OPstreamImpl implementation.

Constructor & Destructor Documentation

mpiOPstreamImpl ( )
inline

Construct null.

Definition at line 75 of file mpiOPstreamImpl.H.


Member Function Documentation

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_.


The documentation for this class was generated from the following files: