#include <CharPackMPI.h>
Inheritance diagram for CharPackMPI::

Public Methods | |
| CharPackMPI () | |
| CharPackMPI (int nbytes) | |
| ~CharPackMPI () | |
| void | initiateSend (int dest, int tag, MPI_Comm comm=MPI_COMM_WORLD) |
| void | initiateRecv (int &length, int source, int tag, MPI_Comm comm=MPI_COMM_WORLD) |
| void | send (int dest, int tag, MPI_Comm comm=MPI_COMM_WORLD) |
| void | receive (int length, int source, int tag, MPI_Comm comm=MPI_COMM_WORLD) |
NAME: CharPackMPI - send data packed by CharPack
DESCRIPTION:
The class enables packing and communication of data, useful in parallel/distributed programming. Currently the class only implements blocking send and receive. CharPack'ed arrays can easily be distributed non-blocking by making explicit calls to non-blocking MPI-routines.
|
|
One must know the upper limit of the char array (the number of bytes to be packed) when creating a "CharPackMPI" object. Hopefully, the programmer is able to compute this length exactly. |
|
|
|
|
|
|
|
|
set up communication by receiving the size of the packed array to be sent using function "send" |
|
|
set up communication by sending the size of the packed array to be sent using function "send" |
|
|
|
|
|
|