/* Good broadcasts. */ #include #include int nprocs; int myrank; #define count 10 void main() { int argc; char **argv; double x[count]; double y[count]; int root; int i; MPI_Init(&argc, &argv); MPI_Comm_rank(MPI_COMM_WORLD, &myrank); MPI_Comm_size(MPI_COMM_WORLD, &nprocs); root = nprocs-1; // just to be different for (i=0; i