MPI_Cart_rank functie
Bepaalt de procesrang in communicator op basis van de Cartesische locatie.
Syntaxis
int MPIAPI MPI_Cart_rank(
MPI_Comm comm,
_In_ int *coords,
_Out_ int *rank
);
Parameters
Comm
Communicator met cartesische structuur.coords [in]
Matrix met gehele getallen (van grootteweergaven, het aantal dimensies van de Cartesische topologie die is gekoppeld aan comm) die de cartesische coördinaten van een proces aangeeft.rang [ uit]
Rang van opgegeven proces.
Retourwaarde
Retourneert MPI_SUCCESS bij succes. Anders is de retourwaarde een foutcode.
In Fortran wordt de retourwaarde opgeslagen in de parameter IERROR .
Fortran
MPI_CART_RANK(COMM, COORDS, RANK, IERROR)
INTEGER COMM, COORDS(*), RANK, IERROR
Vereisten
Product |
HPC Pack 2012 MS-MPI Redistributable Package, HPC Pack 2008 R2 MS-MPI Redistributable Package, HPC Pack 2008 MS-MPI Redistributable Package of HPC Pack 2008 Client Utilities |
Header |
Mpi.h; Mpif.h |
Bibliotheek |
Msmpi.lib |
DLL |
Msmpi.dll |