MPI_TYPE_SIZE, MPI_Type_size Purpose Returns the number of bytes represented by any defined datatype. C synopsis #include int MPI_Type_size(MPI_Datatype datatype,int *size); C++ synopsis #include mpi.h int MPI::Datatype::Get_size() const; FORTRAN synopsis include 'mpif.h' or use mpi MPI_TYPE_SIZE(INTEGER DATATYPE,INTEGER SIZE,INTEGER IERROR) Parameters datatype is the datatype (handle) (IN) size is the datatype size (integer) (OUT) IERROR is the FORTRAN return code. It is always the last argument. Description This subroutine returns the total number of bytes in the type signature associated with datatype. Entries with multiple occurrences in the datatype are counted. Notes This function must be used with some care in 64-bit applications because size is an integer and could be subject to overflow. Errors Invalid datatype MPI not initialized MPI already finalized Related information