LAM/MPI logo

MPI binding for MPI_TYPE_STRUCT

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just the tutorials

Neutral Binding

MPI_TYPE_STRUCT(count, array_of_blocklengths, array_of_displacements, array_of_types, newtype)
[ IN count] number of blocks (integer) -- also number of entries in arrays array_of_types, array_of_displacements and array_of_blocklengths
[ IN array_of_blocklength] number of elements in each block (array of integer)
[ IN array_of_displacements] byte displacement of each block (array of integer)
[ IN array_of_types] type of elements in each block (array of handles to datatype objects)
[ OUT newtype] new datatype (handle)


C Binding

int MPI_Type_struct(int count, int *array_of_blocklengths, MPI_Aint *array_of_displacements, MPI_Datatype *array_of_types, MPI_Datatype *newtype)

Note: This function is deprecated

FORTRAN Binding

MPI_TYPE_STRUCT(COUNT, ARRAY_OF_BLOCKLENGTHS, ARRAY_OF_DISPLACEMENTS, ARRAY_OF_TYPES, NEWTYPE, IERROR)
INTEGER COUNT, ARRAY_OF_BLOCKLENGTHS(*), ARRAY_OF_DISPLACEMENTS(*), ARRAY_OF_TYPES(*), NEWTYPE, IERROR

Note: This function is deprecated

C++ Binding
(in the MPI:: namespace)


static MPI::Datatype MPI::Datatype::Create_struct(int count, const int array_of_blocklengths[], const MPI::Aint array_of_displacements[], const MPI::Datatype array_of_types[])