Basic HTML version of Foils prepared 19 September 98

Foil 74 Jacobi Iteration: MPI Program Design

From MPI Message Passing Interface Computational Science for Simulations -- Fall Semester 1998. by Geoffrey C. Fox, Nancy McCracken


Mapping: Cartesian grid directly supported by MPI virtual topologies
For generality, write as the 2-D version
  • Create a 1?P (or P?1) grid for 1-D version
Adjust array bounds, iterate over local array
  • For convenience, include shadow region to hold communicated values (not iterated over)
0 nylocal
nxlocal
nx by ny points in a
npx by npy decomposition



© 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