Delen via


MPI_Cart_coords functie

Bepaalt de procescoörden in de cartesische topologie gegeven rangschikking in groep.

Syntaxis

int MPIAPI MPI_Cart_coords(
   MPI_Comm               comm,
   int                    rank,
   int                    maxdims,
   _Out_cap_(maxdims) int *coords
);

Parameters

  • Comm
    Communicator met cartesische structuur.

  • Rang
    Rang van een proces binnen een groep van comm.

  • maxdims
    Lengte van vectorcoorden in het aanroepende programma.

  • coords
    Matrix met gehele getallen (van maximale grootte) met de Cartesische coördinaten van het 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_COORDS(COMM, RANK, MAXDIMS, COORDS, IERROR)
        INTEGER COMM, RANK, MAXDIMS, COORDS(*), 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

Zie ook

MPI-procestopologiefuncties