Basic HTML version of Foils prepared 19 September 98

Foil 60 MPI_Cart_coords or Who am I?

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


1 Given the rank of the process returned by MPI_Comm_rank in a variable myrank, this routine gives a two element (for two dimensional topology) array (coords in example below) with the (i, j) coordinates of this process in the new cartesian communicator.
2 ierr = MPI_Cart_coords (MPI_COMM_WORLD,
3 myrank, ndim, coords);
4 coords[0] and coords[1] will be the i and j coordinates.

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