LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Heiko Bauke (heiko.bauke_at_[hidden])
Date: 2005-05-02 01:12:55


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