5 int main(int argc, char **argv) {
11 MPI_Datatype columntype;
13 MPI_Init(&argc,&argv);
14 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
16 MPI_Type_vector(SIZE, 1, SIZE, MPI_DOUBLE, &columntype);
17 MPI_Type_commit(&columntype);
26 /* only one column is send
27 * this is an exemple for non-contignous data*/
28 MPI_Bcast(a, 1, columntype, 0, MPI_COMM_WORLD);
30 for(i=0; i<SIZE; i++){
31 for (j=0; j < SIZE; j++) {
32 printf("rank= %d, a[%d][%d]=%f\n",