FreeFOAM The Cross-Platform CFD Toolkit
mpiIPstreamImpl Class Reference

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

#include <mpiPstream/mpiIPstreamImpl.H>


Detailed Description

MPI implementation of the IPstreamImpl abstract base class.

Source files

Definition at line 55 of file mpiIPstreamImpl.H.

+ Inheritance diagram for mpiIPstreamImpl:
+ Collaboration diagram for mpiIPstreamImpl:

List of all members.

Public Member Functions

 TypeName ("mpiIPstreamImpl")
 mpiIPstreamImpl ()
 Construct null.
virtual void init (const PstreamImpl::commsTypes commsType, const label bufSize, int &fromProcNo, label &messageSize, List< char > &buf)
 Initialization.
virtual label read (const PstreamImpl::commsTypes commsType, const int fromProcNo, char *buf, const std::streamsize bufSize)
 Read into given buffer from given processor and return the.
virtual void waitRequests ()
 Non-blocking receives: wait until all have finished.
virtual bool finishedRequest (const label i)
 Non-blocking receives: has request i finished?
- Public Member Functions inherited from IPstreamImpl
 TypeName ("IPstreamImpl")
 declareRunTimeSelectionTable (autoPtr, IPstreamImpl, dictionary,(),())
 IPstreamImpl ()
 Construct null.
virtual ~IPstreamImpl ()

Additional Inherited Members

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

Constructor & Destructor Documentation

mpiIPstreamImpl ( )
inline

Construct null.

Definition at line 75 of file mpiIPstreamImpl.H.


Member Function Documentation

TypeName ( "mpiIPstreamImpl"  )
void init ( const PstreamImpl::commsTypes  commsType,
const label  bufSize,
int &  fromProcNo,
label &  messageSize,
List< char > &  buf 
)
virtual

Initialization.

Implements IPstreamImpl.

Definition at line 53 of file mpiIPstreamImpl.C.

References Foam::abort(), UList< T >::begin(), Foam::FatalError, FatalErrorIn, List< T >::setSize(), and List< T >::size().

Foam::label read ( const PstreamImpl::commsTypes  commsType,
const int  fromProcNo,
char *  buf,
const std::streamsize  bufSize 
)
virtual

Read into given buffer from given processor and return the.

message size

Implements IPstreamImpl.

Definition at line 88 of file mpiIPstreamImpl.C.

References Foam::abort(), Foam::FatalError, FatalErrorIn, and Foam::PstreamGlobals::IPstream_outstandingRequests_.

void waitRequests ( )
virtual

Non-blocking receives: wait until all have finished.

Implements IPstreamImpl.

Definition at line 189 of file mpiIPstreamImpl.C.

References Foam::endl(), FatalErrorIn, and Foam::PstreamGlobals::IPstream_outstandingRequests_.

bool finishedRequest ( const label  i)
virtual

Non-blocking receives: has request i finished?

Implements IPstreamImpl.

Definition at line 214 of file mpiIPstreamImpl.C.

References Foam::abort(), Foam::FatalError, FatalErrorIn, Foam::PstreamGlobals::IPstream_outstandingRequests_, and Foam::nl.


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