Skip to content

Latest commit

 

History

History
67 lines (42 loc) · 1.3 KB

MPI_Type_hvector.3.rst

File metadata and controls

67 lines (42 loc) · 1.3 KB

MPI_Type_hvector

:ref:`MPI_Type_hvector` |mdash| Creates a vector (strided) datatype with offset in bytes |mdash| |deprecated_favor| :ref:`MPI_Type_create_hvector`.

SYNTAX

C Syntax

#include <mpi.h>

int MPI_Type_hvector(int count, int blocklength, MPI_Aint stride,
     MPI_Datatype oldtype, MPI_Datatype *newtype)

Fortran Syntax

USE MPI
! or the older form: INCLUDE 'mpif.h'

MPI_TYPE_HVECTOR(COUNT, BLOCKLENGTH, STRIDE, OLDTYPE, NEWTYPE,
             IERROR)
     INTEGER COUNT, BLOCKLENGTH, STRIDE, OLDTYPE
     INTEGER NEWTYPE, IERROR

INPUT PARAMETERS

  • 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 datatype (handle).

OUTPUT PARAMETERS

  • newtype: New datatype (handle).
  • ierror: Fortran only: Error status (integer).

DESCRIPTION

Note that use of this routine is deprecated as of MPI-2. Use :ref:`MPI_Type_create_hvector` instead.

ERRORS

.. seealso::
   * :ref:`MPI_Type_create_hvector`
   * :ref:`MPI_Type_vector`