Basic HTML version of Foils prepared 10 Oct 1995

Foil 36 More Complex Datatypes MPI_TYPE_VECTOR/INDEXED

From Fox Presentation Fall 1995 CPS615 Basic Simulation Track for Computational Science -- Fall Semester 95. by Geoffrey C. Fox


MPI_TYPE_VECTOR (count,blocklen,stride,oldtype,newtype,ierr)
  • IN count Number of blocks to be added
  • IN blocklen Number of elements in block
  • IN stride Number of elements (NOT bytes) between start of each block
  • IN oldtype Datatype of each element
  • OUT newtype Handle(pointer) for new derived type
MPI_TYPE_INDEXED (count,blocklens,indices,oldtype,newtype,ierr)
  • IN count Number of blocks to be added
  • IN blocklens Number of elements in each block -- an array of length count
  • IN indices Displacements (an array of length count) for each block
  • IN oldtype Datatype of each element
  • OUT newtype Handle(pointer) for new derived type



© on Tue Oct 7 1997