1MPI_Type_struct(3) LAM/MPI MPI_Type_struct(3)
2
3
4
6 MPI_Type_struct - Creates a struct datatype
7
9 #include <mpi.h>
10 int MPI_Type_struct(int count, int *lengths,
11 MPI_Aint *disps, MPI_Datatype *oldtypes,
12 MPI_Datatype *newtype)
13
15 count - number of blocks (integer) -- also number of entries in arrays
16 array_of_types , array_of_displacements and array_of_block‐
17 lengths
18 blocklens
19 - number of elements in each block (array)
20 indices
21 - byte displacement of each block (array)
22 old_types
23 - type of elements in each block (array of handles to datatype
24 objects)
25
26
28 newtype
29 - new datatype (handle)
30
31
32
34 This function is deprecated. It has been replaced with an MPI-2 func‐
35 tion (see the "See also" section, below), which provides the same func‐
36 tionality. This function is (or effectively is) a wrapper to the
37 replacement function, anyway. User programs should use the MPI-2
38 replacement function instead of this function.
39
40 Some functions are deprecated because their names did not conform to
41 the stricter naming conventions of MPI-2; others are deprecated because
42 they have been replaced with more flexible functionality.
43
44
46 MPI_Type_create_struct
47
48
50 For more information, please see the official MPI Forum web site, which
51 contains the text of both the MPI-1 and MPI-2 standards. These docu‐
52 ments contain detailed information about each MPI function (most of
53 which is not duplicated in these man pages).
54
55 http://www.mpi-forum.org/
56
57
58
60 The LAM Team would like the thank the MPICH Team for the handy program
61 to generate man pages ("doctext" from ftp://ftp.mcs.anl.gov/pub/sow‐
62 ing/sowing.tar.gz ), the initial formatting, and some initial text for
63 most of the MPI-1 man pages.
64
66 tstruct.c
67
68
69
70LAM/MPI 7.1.2 2/23/2006 MPI_Type_struct(3)