/* This program demonstrate the issue of message matchiong and mismatching. */ /* Compile : mpicc -o message_match message_match.c */ /* Run : mpirun -np 2 message_match */ #include "mpi.h" #include #define SIZE 15 int main(int argc,char *argv[]) { int pid, np, i, count, element,flag; int a[SIZE],b[SIZE]; MPI_Status stat; MPI_Datatype MPI_2D_POINTs; MPI_Datatype MPI_3D_POINTs; MPI_Init(&argc,&argv); MPI_Comm_rank(MPI_COMM_WORLD, &pid); MPI_Comm_size(MPI_COMM_WORLD, &np); for (i=0;i