PLUTO  4.0
 All Data Structures Files Functions Variables Enumerations Macros Pages
Functions
al_subarray_.c File Reference

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)
 

Detailed Description

Creates a datatype describing a subarray of a multidimensional array

Authors
A. Malagoli (University of Chicago)
Date
Jul 17, 1999

Function Documentation

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).

Parameters
[in]ndimsnumber of array dimensions
[in]array_of_sizesnumber of elements of type oldtype in each dimension of the full array
[in]array_of_subsizesnumber of elements of type oldtype in each dimension of the subarray
[in]array_of_startsstarting coordinates of the subarray in each dimension
[in]orderarray storage order flag
[in]oldtypeold datatype (handle)
[out]newtypenew datatype (handle)