Criação de Tipo Derivado (cont.)
Implementação do Exemplo, com MPI:
MPI_Datatype* mesg_mpi_t_ptr /* out */) { /* ptr to new type */
/* The number of elements in each "block" of the */
/* new type. For us, 1 each. */
/* Displacement of each element from start of new type. The "d_i's." */
MPI_Aint displacements[3];
/* MPI types of the elements. The "t_i's." */
MPI_Datatype typelist[3];
/* Use for calculating displacements */
MPI_Aint start_address, address;