FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

mpiPstreamImpl Class Reference

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

#include <mpiPstream/mpiPstreamImpl.H>


Detailed Description

MPI implementation of the PstreamImpl abstract base class.

Source files

Definition at line 55 of file mpiPstreamImpl.H.

Inheritance diagram for mpiPstreamImpl:
Collaboration diagram for mpiPstreamImpl:

List of all members.

Public Member Functions

 TypeName ("mpiPstreamImpl")
 mpiPstreamImpl ()
 Construct null.
virtual void  addValidParOptions (HashTable< string > &validParOptions)
 Add the valid option this type of communications library.
virtual bool  init (int &argc, char **&argv, int &myProcNo_, List< int > &procIDs_, bool &isParallel)
 Initialisation function called from main.
virtual void  exit (int errnum)
 Exit program.
virtual void  abort ()
 Abort program.
void  reduce (scalar &Value, const sumOp< scalar > &bop)
 Reduce implementation for scalars (.

Constructor & Destructor Documentation

mpiPstreamImpl (  ) [inline]

Construct null.

Definition at line 75 of file mpiPstreamImpl.H.


Member Function Documentation

TypeName ( "mpiPstreamImpl"    )
void addValidParOptions ( HashTable< string > &   validParOptions  ) [virtual]

Add the valid option this type of communications library.

adds/requires on the command line

Implements PstreamImpl.

Definition at line 62 of file mpiPstreamImpl.C.

References HashTable< T, Key, Hash >::insert().

bool init ( int &   argc,
char **&   argv,
int &   myProcNo_,
List< int > &   procIDs_,
bool &   isParallel  
) [virtual]

Initialisation function called from main.

Spawns slave processes and initialises inter-communication

Implements PstreamImpl.

Definition at line 74 of file mpiPstreamImpl.C.

References Foam::abort(), Foam::FatalError, FatalErrorIn, forAll, Foam::getEnv(), PstreamImpl::initCommunicationSchedule(), and List< T >::setSize().

void exit ( int   errnum  ) [virtual]

Exit program.

Implements PstreamImpl.

Definition at line 133 of file mpiPstreamImpl.C.

References Foam::exit().

void abort (  ) [virtual]

Abort program.

Implements PstreamImpl.

Definition at line 154 of file mpiPstreamImpl.C.

void reduce ( scalar &   Value,
const sumOp< scalar > &   bop  
) [virtual]

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