/* * example for send and recv */ #include #include #define N 8 int main(int argc, char *argv[]) { int myid, np, src, dest, n, i; double a[N], b[N]; MPI_Status status; MPI_Init(&argc, &argv); MPI_Comm_rank(MPI_COMM_WORLD, &myid); MPI_Comm_size(MPI_COMM_WORLD, &np); for (i=0; i