Before issuing a send command, the buffer must be packed with
data to be sent.
The functions to pack data into the active send buffer are
pvm_pkXXXX() where the
XXXX indicates the type of data
The data types supported by PVM (and their
designation) are byte (
byte), complex (
dcplx), double (
double), float (
int), long (
long) and short(
The example code packs integers and uses the function
int info = pvm_pkint(int *np, int nitem, int stride)
Each of the functions outlined above has three parameters.
The first is a pointer to the first item to be packed into the
message, the second is the total number of items to be packed and the
third is the stride to use when packing.
There is also a function to pack a NULL terminated string (
that requires only a single parameter which points to the first
position of the string.