#include <cmpicomm.h>
Inheritance diagram for cMPICommunications:

Public Member Functions | |
| cMPICommunications () | |
| virtual | ~cMPICommunications () |
Redefined methods from cParsimCommunications | |
| virtual void | init () |
| virtual void | shutdown () |
| virtual int | getNumPartitions () |
| virtual int | getProcId () |
| virtual cCommBuffer * | createCommBuffer () |
| virtual void | recycleCommBuffer (cCommBuffer *buffer) |
| virtual void | send (cCommBuffer *buffer, int tag, int destination) |
| virtual void | broadcast (cCommBuffer *buffer, int tag) |
| virtual bool | receiveBlocking (int filtTag, cCommBuffer *buffer, int &receivedTag, int &sourceProcId) |
| virtual bool | receiveNonblocking (int filtTag, cCommBuffer *buffer, int &receivedTag, int &sourceProcId) |
Protected Member Functions | |
| virtual cMPICommBuffer * | doCreateCommBuffer () |
|
|
Constructor.
|
|
|
Destructor calls MPI_Finalize().
|
|
||||||||||||
|
Sends packed data with given tag to all partitions.
Reimplemented from cParsimCommunications. |
|
|
Creates an empty buffer of type cMPICommBuffer.
Implements cParsimCommunications. |
|
|
Factory method behind createCommBuffer().
Reimplemented in cPtrPassingMPICommunications. |
|
|
Returns total number of partitions.
Implements cParsimCommunications. |
|
|
Returns the MPI rank of this partition.
Implements cParsimCommunications. |
|
|
Init the library.
Implements cParsimCommunications. |
|
||||||||||||||||||||
|
Receives packed data with given tag from given destination. Normally returns true; false is returned if blocking was interrupted by the user. Implements cParsimCommunications. |
|
||||||||||||||||||||
|
Receives packed data with given tag from given destination. Call is non-blocking -- it returns true if something has been received, false otherwise. Implements cParsimCommunications. |
|
|
Recycle communication buffer after use.
Implements cParsimCommunications. |
|
||||||||||||||||
|
Sends packed data with given tag to destination.
Implements cParsimCommunications. |
|
|
Shutdown the communications library.
Implements cParsimCommunications. |
1.4.1