NAME
MMPPIITTyyppeeccrreeaatteehhvveeccttoorr - Creates a vector (strided) data type with
offset in bytes. SSYYNNTTAAXX CC SSyynnttaaxx#include
int MPITypecreatehvector(int count, int blocklength, MPIAint stride, MPIDatatype oldtype, MPIDatatype *newtype) FFoorrttrraann SSyynnttaaxx ((sseeee FFOORRTTRRAANN 7777 NNOOTTEESS)) INCLUDE 'mpif.h' MPITYPECREATEHVECTOR(COUNT, BLOCKLENGTH, STRIDE, OLDTYPE,NEWTYPE, IERROR)
INTEGER COUNT, BLOCKLENGTH, OLDTYPE, NEWTYPE, IERROR
INTEGER(KIND=MPIADDRESSKIND) STRIDE CC++++ SSyynnttaaxx#include
MPI::Datatype MPI::Datatype::Createhvector(int count, int blocklength, MPI::Aint stride) const IINNPPUUTT PPAARRAAMMEETTEERRSS count Number of blocks (nonnegative integer). blocklength Number of elements in each block (nonnegative integer). stride Number of bytes between start of each block (integer). oldtype Old data type (handle). OOUUTTPPUUTT PPAARRAAMMEETTEERRSS newtype New data type (handle).IERROR Fortran only: Error status (integer).
DESCRIPTION
MPITypecreatehvector creates a vector (strided) data type with off-
set in bytes.NOTE - This routine replaces MPITypehvector, which is deprecated. See
the man page MPITypehvector(3) for information about that routine. FFOORRTTRRAANN 7777 NNOOTTEESS The MPI standard prescribes portable Fortran syntax for the STRIDEargument only for Fortran 90. FORTRAN 77 users may use the non-porta-
ble syntax INTEGER*MPIADDRESSKIND STRIDE where MPIADDRESSKIND is a constant defined in mpif.h and gives the length of the declared integer in bytes. EERRRROORRSS Almost all MPI routines return an error value; C routines as the valueof the function and Fortran routines in the last argument. C++ func-
tions do not return errors. If the default error handler is set toMPI::ERRORSTHROWEXCEPTIONS, then on error the C++ exception mechanism
will be used to throw an MPI:Exception object. Before the error value is returned, the current MPI error handler is called. By default, this error handler aborts the MPI job, except for I/O function errors. The error handler may be changed withMPICommseterrhandler; the predefined error handler MPIERRORSRETURN
may be used to cause error values to be returned. Note that MPI does not guarantee that an MPI program can continue past an error.SEE ALSO
MPITypehvector MPITypevector Open MPI 1.2 September 2006MPITypecreatehvector(3OpenMPI)