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

View File

@ -93,11 +93,11 @@ int main(int argc, char * argv[])
/* Print the initial matrices */ /* Print the initial matrices */
if (my_rank == 0) if (my_rank == 0)
cout << " *** Initial Matrices ***" << endl; cout << " *** Initial Matrices ***" << endl;
for (int i = 0; i < comm_size; i++) for (int i = 0; i < p; i++)
{ {
if (my_rank == i) if (my_rank == i)
printMatrix(&matrix[0][0], n, n); printMatrix(&matrix[0][0], n, n);
MPI_Barrier(); /* for printint coherently */ MPI_Barrier(MPI_COMM_WORLD); /* for printint coherently */
} }
/* Populate the displacements array */ /* Populate the displacements array */
@ -133,11 +133,11 @@ int main(int argc, char * argv[])
/* Print the transposed matrices */ /* Print the transposed matrices */
if (my_rank == 0) if (my_rank == 0)
cout << " *** Final Transposed Matrices ***" << endl; cout << " *** Final Transposed Matrices ***" << endl;
for (int i = 0; i < comm_size; i++) for (int i = 0; i < p; i++)
{ {
if (my_rank == i) if (my_rank == i)
printMatrix(&matrix[0][0], n, n); printMatrix(&matrix[0][0], n, n);
MPI_Barrier(); /* for printint coherently */ MPI_Barrier(MPI_COMM_WORLD); /* for printint coherently */
} }
MPI_Finalize(); MPI_Finalize();