MPI_Type_create_struct functie
Hiermee definieert u een nieuw gegevenstype met een opgegeven gegevenstype, verplaatsing en grootte voor elk gegevensblok.
Syntaxis
int MPIAPI MPI_Type_create_struct(
int count,
_In_count_(count) int array_of_blocklengths[],
_In_count_(count) MPI_Aint array_of_displacements[],
_In_count_(count) MPI_Datatype array_of_types[],
_Out_ MPI_Datatype *newtype
);
Parameters
Tellen
Het aantal blokken en het aantal vermeldingen in de parameters array_of_blocklengths, array_of_displacements en array_of_types .array_of_blocklengths
Het aantal elementen van elk blok.array_of_displacements
De verplaatsing van elk afzonderlijk blok in bytes.array_of_types
Het gegevenstype van elk afzonderlijk blok.newtype [uit]
Bij retour bevat een MPI_Datatype ingang die het nieuwe gegevenstype vertegenwoordigt.
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_CREATE_STRUCT(COUNT, ARRAY_OF_BLOCKLENGTHS, ARRAY_OF_DISPLACEMENTS, ARRAY_OF_TYPES, NEWTYPE, IERROR)
COUNT, ARRAY_OF_BLOCKLENGTHS, ARRAY_OF_DISPLACEMENTS, ARRAY_OF_TYPES, NEWTYPE, IERROR
Opmerkingen
Deze functie vervangt de MPI_Type_struct functie, die is afgeschaft.
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 |