MPI_Type_struct

--- Creates a struct datatype

Input Parameters

count
number of blocks (integer) -- also number of entries in arrays array_of_types , array_of_displacements and array_of_blocklengths
blocklens
number of elements in each block (array)
indices
byte displacement of each block (array)
old_types
type of elements in each block (array of handles to datatype objects)

Output Parameter

newtype
new datatype (handle)

Synopsis


#include "mpi.h"
int MPI_Type_struct( count, blocklens, indices, old_types, newtype )
int           count;
int        blocklens[];
MPI_Aint      indices[];      
MPI_Datatype  old_types[];
MPI_Datatype *newtype;

Location: type_struct.c