next up previous
Next: Unpacking the data Up: Redistribution of block-cyclic data Previous: Code for communicating the

Packing the data


Packing the Data

  integer soffset

  soffset = istep*r
  pos = 0
  call mpi_pack (gindex, 1, MPI_INTEGER,
                 tbuf1, bytesinbuf, pos, comm, ierr)
  call mpi_pack (a(soffset), nsuperblks, newtype,
                 tbuf1, bytesinbuf, pos, comm, ierr)



David W Walker
Mon Jan 20 11:10:22 GMT 1997