Sending 2 dim array using scatter
- by MPI_Beginner
I am a beginner in MPI, and i am using C Language, and Simulator for Processors (MPICH2), i wrote the following code to send a 2D array to make 2 processors take a line from it but it produces error when running MPICH2, the code is:
int main ( int argc , char *argv[] )
{
int rank;
int commsize;
MPI_Init(&argc, &argv);
…