All Sun MPI communication routines have a data type argument. These may be primitive data types, such as integers or floating-point numbers, or they may be user-defined, derived data types, which are specified in terms of primitive types.
Derived data types allow users to specify more general, mixed, and noncontiguous communication buffers, such as array sections and structures that contain combinations of primitive data types.
The basic data types that can be specified for the data-type argument correspond to the basic data types of the host language. Values for the data-type argument for Fortran and the corresponding Fortran types are listed in the following table.
Table 2-2 Possible Values for the Data Type Argument for Fortran
MPI Data Type |
Fortran Data Type |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MPI_PACKED |
|
Values for the data-type argument in C and the corresponding C types are listed in the following table. .
Table 2-3 Possible Values for the Data Type Argument for C
MPI Data Type |
C Data Type |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MPI_PACKED |
|
The data types MPI_BYTE
and MPI_PACKED
have no corresponding Fortran or C data types.