#include #include "mpi.h" #define MSGLEN 2048 /* length of message in elements */ #define TAG_A 100 #define TAG_B 200 main( int argc, char **argv ) { float message1[MSGLEN], message2[MSGLEN]; int rank, i; MPI_Status status; /* status of communication */ MPI_Init( &argc, &argv ); MPI_Comm_rank( MPI_COMM_WORLD, &rank ); printf ( " Task %d initialized\n", rank ); for ( i=0; i