Basic HTML version of Foils prepared 19 September 98

Foil 76 Jacobi Iteration: create topology

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


call MPI_CART_CREATE(MPI_COMM_WORLD,
ndim,dims,periods,
reorder,comm2d,ierr)
CALL MPI_COMM_RANK( MPI_COMM_WORLD,
myrank, ierr )
CALL MPI_CART_COORDS( MPI_COMM_WORLD,
myrank, 2, coords, ierr )
CALL MPI_CART_SHIFT( comm2d,
2, 1, nbrleft, nbrright, ierr )
CALL MPI_CART_SHIFT( comm2d,
1, 1, nbrbottom, nbrtop, ierr )



© 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