Delen via


MPI_Cart_get functie

Hiermee haalt u cartesische topologiegegevens op die zijn gekoppeld aan een communicator.

Syntaxis

int MPIAPI MPI_Cart_get(
   MPI_Comm               comm,
   int                    maxdims,
   _Out_cap_(maxdims) int *dims,
   _Out_cap_(maxdims) int *periods,
   _Out_cap_(maxdims) int *coords
);

Parameters

  • Comm
    Communicator met cartesische structuur.

  • maxdims
    De lengte van vectoren dimt, puntenenoorden in het aanroepende programma.

  • Dims
    Aantal processen voor elke cartesische dimensie.

  • Perioden
    Periodiciteit (waar/onwaar) voor elke cartesische dimensie.

  • coords
    Coördinaten van het aanroepproces in cartesische structuur.

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_GET(COMM, MAXDIMS, DIMS, PERIODS, COORDS, IERROR)
        INTEGER COMM, MAXDIMS, DIMS(*), COORDS(*), IERROR
        LOGICAL PERIODS(*)

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