Hi,
On Sat, 30 Apr 2005 15:03:54 -0400
David Cronk <cronk_at_[hidden]> wrote:
> To follow up on this, if you do not already know, it is not that
> difficult to build the subarray data type by using type contiguous to
> define a row/column (row in C, column in Fortran) and then type vector
>
> to define the subarray, building on the contiguous datatype. This is,
>
> of course, for a 2-D array. It is a natural extension to arrays of
> higher dimension.
of course I could use MPI_Type_vector to imitate MPI_Type_subarray. (And
that is what I am doing now.) But I wanted to use MPI_Type_subarray for
some pedagogical reasons.
Heiko
--
-- Ehrungen, das ist, wenn die Gerechtigkeit ihren guten Tag hat.
-- (Konrad Adenauer, dt. Bundeskanzler, 1876-1967)
-- Supercomputing in Magdeburg @ http://tina.nat.uni-magdeburg.de
-- Heiko Bauke @ http://www.uni-magdeburg.de/bauke
|