/* program dot3mpi.c */ /* Illustrates dot product via mpi_gather.*/ #include /* Includes the mpi C library. */ #include "mpi.h" main(int argc, char* argv[]) { float loc_dot,dot; float a[31],b[31],loc_dots[31]; int my_rank,p,n,source,dest,tag,loc_n; int i,en,bn; MPI_Status status; n = 8; dest = 0; tag = 50; for (i = 1;i