Newsgroups: comp.parallel.mpi
From: David Espadas Valladares <despadas@eucmos.sim.ucm.es>
Subject: Re: Constructing a datatype for 3D array
Organization: Universidad Complutense
Date: Thu, 05 Mar 1998 15:56:20 +0100
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <34FEBD14.7C76CE32@eucmos.sim.ucm.es>

Yon Han CHONG wrote:
> 
> I want to divide 3D array into 3 directions and their boundaries are
> exchanged in all 3 directions.
> 
> I would rather construct a datatype to define the potion of array to be
> sent and received than to pack and unpack 3D array into 1D buffer for
> communication.

I did the same you want to do now a months ago, and it was just the way you
explain. It is easy doing it using the Derived Datatypes provided by MPI,
defining the "X", "Y", or "Z plane" datatype.

Good luck.

-- 
_______________________________________________________________________________
David Espadas Valladares 
Dpto. de Arquitectura de Computadores y Automatica
Facultad de CC. Fisicas
Universidad Complutense de Madrid
Ciudad Universitaria S/N                      Phone: +34 1 394 43 64
28040 Madrid - SPAIN                         E-mail: despadas@eucmos.sim.ucm.es
_______________________________________________________________________________

