Description Usage Arguments Details Value Author(s) References See Also Examples
mpi.cart.coords translates a rank to its Cartesian topology coordinate.
1 | mpi.cart.coords(comm=3, rank, maxdims)
|
comm |
Communicator with Cartesian structure |
rank |
rank of a process within group |
maxdims |
length of vector coord in the calling program |
This function is the rank-to-coordinates translator. It is the inverse map of
mpi.cart.rank. maxdims is at least as big as ndims as
returned by mpi.cartdim.get.
mpi.cart.coords returns an integer array containing the Cartesian
coordinates of specified process.
Alek Hunchak and Hao Yu
http://www.lam-mpi.org/, http://www-unix.mcs.anl.gov/mpi/www/www3/
1 2 3 4 5 6 7 | ## Not run:
#Need at least 9 slaves
mpi.bcast.cmd(mpi.cart.create(1,c(3,3),c(F,T)))
mpi.cart.create(1,c(3,3),c(F,T))
mpi.cart.coords(3,4,2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.