|
Chaste Release::3.1
|
#include <ObjectCommunicator.hpp>
Public Member Functions | |
| ObjectCommunicator () | |
| template<typename CLASS > | |
| void | SendObject (CLASS *const p_object, unsigned destinationProcess, unsigned tag) |
| template<typename CLASS > | |
| CLASS * | RecvObject (unsigned sourceProcess, unsigned tag, MPI_Status &status) |
This is a helper method to enable classes that can be serialized to be sent using PetSc MPI communication. The object is serialized in to a string of characters, and then de-serialized on the receive process.
Definition at line 50 of file ObjectCommunicator.hpp.
| ObjectCommunicator::ObjectCommunicator | ( | ) | [inline] |
Default constructor.
Definition at line 58 of file ObjectCommunicator.hpp.
| CLASS* ObjectCommunicator::RecvObject | ( | unsigned | sourceProcess, |
| unsigned | tag, | ||
| MPI_Status & | status | ||
| ) | [inline] |
Receive an object
| sourceProcess | the process from which the data will be received |
| tag | the unique identifier code |
| status | pointer to the MPI status |
Definition at line 102 of file ObjectCommunicator.hpp.
| void ObjectCommunicator::SendObject | ( | CLASS *const | p_object, |
| unsigned | destinationProcess, | ||
| unsigned | tag | ||
| ) | [inline] |
Send an object.
| p_object | A pointer to the object to be sent |
| destinationProcess | the index of the process to send the data to |
| tag | a unique identifier tag for this communication |
Definition at line 70 of file ObjectCommunicator.hpp.