Creates a datatype describing a subarray of a multidimensional array. More...
#include "al_hidden.h"Functions | |
| int | AL_Type_create_subarray (int ndims, int *array_of_sizes, int *array_of_subsizes, int *array_of_starts, int order, MPI_Datatype oldtype, MPI_Datatype *newtype) |
Creates a datatype describing a subarray of a multidimensional array
| int AL_Type_create_subarray | ( | int | ndims, |
| int * | array_of_sizes, | ||
| int * | array_of_subsizes, | ||
| int * | array_of_starts, | ||
| int | order, | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
Creates a datatype describing a subarray of a multidimensional array NOTE: This routine has been modified from R. Thakur's ROMIO implementation of MPI_Type_create_subarry. The reason for keeping a local copy is mainly to reduce this package's dependence on ROMIO. It only affects the non I/O components of the library (e.g. AL_Allgather).
| [in] | ndims | number of array dimensions |
| [in] | array_of_sizes | number of elements of type oldtype in each dimension of the full array |
| [in] | array_of_subsizes | number of elements of type oldtype in each dimension of the subarray |
| [in] | array_of_starts | starting coordinates of the subarray in each dimension |
| [in] | order | array storage order flag |
| [in] | oldtype | old datatype (handle) |
| [out] | newtype | new datatype (handle) |
1.8.2