Freigeben über


MPI_Type_get_contents-Funktion

Ruft den Inhalt des Typs ab.

Syntax

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[]
);

Parameter

  • datatype
    Datentyp, auf den zugegriffen werden soll.

  • max_integers
    Anzahl der Elemente in array_of_integers.

  • max_addresses
    Anzahl der Elemente in array_of_addresses.

  • max_datatypes
    Anzahl der Elemente in array_of_datatypes.

  • array_of_integers
    Enthält ganzzahlige Argumente, die beim Erstellen des Datentyps verwendet werden.

  • array_of_addresses
    Enthält Adressargumente, die beim Erstellen des Datentyps verwendet werden.

  • array_of_datatypes
    Enthält Datentypargumente, die beim Erstellen des Datentyps verwendet werden.

Rückgabewert

Gibt MPI_SUCCESS nach Erfolg zurück. Andernfalls ist der Rückgabewert ein Fehlercode.

In Fortran wird der Rückgabewert im IERROR-Parameter gespeichert.

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(*)

Anforderungen

Produkt

HPC Pack 2012 MS-MPI Redistributable Package, HPC Pack 2008 R2 MS-MPI Redistributable Package, HPC Pack 2008 MS-MPI Redistributable Package oder HPC Pack 2008 Client Utilities

Header

Mpi.h; Mpif.h

Bibliothek

Msmpi.lib

DLL

Msmpi.dll

Weitere Informationen

MPI-Datentypfunktionen