Description Usage Arguments Details Value Author(s) References See Also Examples
mpi.cart.rank
translates a Cartesian topology coordinate to its rank.
1 | mpi.cart.rank(comm=3, coords)
|
comm |
Communicator with Cartesian structure |
coords |
Specifies the Cartesian coordinates of a process |
For a process group with a Cartesian topology, this function translates the logical
process coordinates to process ranks as they are used by the point-to-point routines.
It is the inverse map of mpi.cart.coords
.
mpi.cart.rank
returns the rank of the 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.rank(3,c(1,0))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.