An interleaved datatype


Up: Datatypes and Heterogenity Next: Scattering a Matrix Previous: Interleaving data


MPI_Type_vector( 4, 4, 8, MPI_DOUBLE, &vec ); 
defines a block of this matrix.


blens[0]  = 1;   blens[1] = 1; 
types[0]  = vec; types[1] = MPI_UB; 
displs[0] = 0;   displs[1] = sizeof(double); 
MPI_Type_struct( 2, blens, displs, types, &block ); 
defines a block whose extent is just 1 entries.



Up: Datatypes and Heterogenity Next: Scattering a Matrix Previous: Interleaving data