Basic HTML version of Foils prepared
19 September 98
Foil 67 Example of Vector type
From
MPI Message Passing Interface Computational Science for Simulations --
Fall Semester 1998
.
by
Geoffrey C. Fox, Nancy McCracken
1
Suppose in Fortran, we have an array
u (0 : nxblock+1, 0 : nyblock+1)
where we want to send rows and columns of elements from 1 : nxblock and 1 : nyblock
in Fortran, arrays are stored column major order (C is row major)
2
Contiguous elements
3
MPI_Type_vector( nyblock, 1, nxblock+2, MPI_REAL, rowtype )
4
defines a row of elements 1:nyblock
5
0 nyblock+1
6
nxblock+1
in Table To:
©
Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu
If you have any comments about this server, send e-mail to
webmaster@npac.syr.edu
.
Page produced by
wwwfoil
on Sun Apr 11 1999