Criação de Tipo Derivado (cont.)
MPI_Datatype mesg_mpi_t; /* MPI type corresponding */
/* to 2 floats and an int */
printf("Enter a, b, and n\n");
scanf("%f %f %d", a_ptr, b_ptr, n_ptr);
Build_derived_type(a_ptr, b_ptr, n_ptr, &mesg_mpi_t);
MPI_Bcast(a_ptr, 1, mesg_mpi_t, 0, MPI_COMM_WORLD);