git-svn-id: svn://anubis/gvsu@254 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
josh 2008-11-23 16:05:51 +00:00
parent 1fd0ca3dcc
commit 379c744d3a

View File

@ -96,7 +96,11 @@ int main(int argc, char * argv[])
for (int i = 0; i < p; i++) for (int i = 0; i < p; i++)
{ {
if (my_rank == i) if (my_rank == i)
{
cout << "Process " << i << " matrix:" << endl;
printMatrix(&matrix[0][0], n, n); printMatrix(&matrix[0][0], n, n);
cout << endl;
}
MPI_Barrier(MPI_COMM_WORLD); /* for printint coherently */ MPI_Barrier(MPI_COMM_WORLD); /* for printint coherently */
} }
@ -136,7 +140,11 @@ int main(int argc, char * argv[])
for (int i = 0; i < p; i++) for (int i = 0; i < p; i++)
{ {
if (my_rank == i) if (my_rank == i)
{
cout << "Process " << i << " matrix:" << endl;
printMatrix(&matrix[0][0], n, n); printMatrix(&matrix[0][0], n, n);
cout << endl;
}
MPI_Barrier(MPI_COMM_WORLD); /* for printint coherently */ MPI_Barrier(MPI_COMM_WORLD); /* for printint coherently */
} }