Delen via


MPI_Type_get_contents functie

Hiermee haalt u de inhoud van het type op.

Syntaxis

int MPIAPI MPI_Type_get_contents(
   MPI_Datatype                          datatype,
   int                                   max_integers,
   int                                   max_addresses,
   int                                   max_datatypes,
   _Out_cap_(max_integers) int           array_of_integers[],
   _Out_cap_(max_addresses) MPI_Aint     array_of_addresses[],
   _Out_cap_(max_datatypes) MPI_Datatype array_of_datatypes[]
);

Parameters

  • Datatype
    Gegevenstype voor toegang.

  • max_integers
    Aantal elementen in array_of_integers.

  • max_addresses
    Aantal elementen in array_of_addresses.

  • max_datatypes
    Aantal elementen in array_of_datatypes.

  • array_of_integers
    Bevat argumenten voor gehele getallen die worden gebruikt bij het samenstellen van het gegevenstype.

  • array_of_addresses
    Bevat adresargumenten die worden gebruikt bij het samenstellen van het gegevenstype.

  • array_of_datatypes
    Bevat gegevenstypeargumenten die worden gebruikt bij het samenstellen van het gegevenstype.

Retourwaarde

Retourneert MPI_SUCCESS bij succes. Anders is de retourwaarde een foutcode.

In Fortran wordt de retourwaarde opgeslagen in de parameter IERROR .

Fortran

    MPI_TYPE_GET_CONTENTS(DATATYPE, MAX_INTEGERS, MAX_ADDRESSES, MAX_DATATYPES,
                ARRAY_OF_INTEGERS, ARRAY_OF_ADDRESSES, ARRAY_OF_DATATYPES, IERROR)
        INTEGER DATATYPE, MAX_INTEGERS, MAX_ADDRESSES, MAX_DATATYPES,
        ARRAY_OF_INTEGERS(*), ARRAY_OF_DATATYPES(*), IERROR
        INTEGER(KIND=MPI_ADDRESS_KIND) ARRAY_OF_ADDRESSES(*)

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-gegevenstypefuncties