updated
git-svn-id: svn://anubis/gvsu@253 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
parent
c44c1f028e
commit
1fd0ca3dcc
@ -93,11 +93,11 @@ int main(int argc, char * argv[])
|
||||
/* Print the initial matrices */
|
||||
if (my_rank == 0)
|
||||
cout << " *** Initial Matrices ***" << endl;
|
||||
for (int i = 0; i < comm_size; i++)
|
||||
for (int i = 0; i < p; i++)
|
||||
{
|
||||
if (my_rank == i)
|
||||
printMatrix(&matrix[0][0], n, n);
|
||||
MPI_Barrier(); /* for printint coherently */
|
||||
MPI_Barrier(MPI_COMM_WORLD); /* for printint coherently */
|
||||
}
|
||||
|
||||
/* Populate the displacements array */
|
||||
@ -133,11 +133,11 @@ int main(int argc, char * argv[])
|
||||
/* Print the transposed matrices */
|
||||
if (my_rank == 0)
|
||||
cout << " *** Final Transposed Matrices ***" << endl;
|
||||
for (int i = 0; i < comm_size; i++)
|
||||
for (int i = 0; i < p; i++)
|
||||
{
|
||||
if (my_rank == i)
|
||||
printMatrix(&matrix[0][0], n, n);
|
||||
MPI_Barrier(); /* for printint coherently */
|
||||
MPI_Barrier(MPI_COMM_WORLD); /* for printint coherently */
|
||||
}
|
||||
|
||||
MPI_Finalize();
|
||||
|
Loading…
x
Reference in New Issue
Block a user