On Tue, 24 Jun 2003, Jeff Squyres wrote:
> example, in your sample above, it looks like you want [k][...][...] planes
> to be contiguous (more specifically, the plane that you want to send must
> be contiguous in the last 2 dimensions in C, so for array[x][y][z], the x
> and z dimensions must be contiguous).
Oops! That should read:
"...the y and z dimensions must be contiguous."
Sorry about that!
> MAXZ * sizeof(datatype)) space and setup pointers so that array[x][y][z]
> works properly in C, and when you use &array[x][0][0], you get the first
> address of the byte in the y/z plane, and you can send all of that data in
> a single MPI_SEND.
--
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
|