updated
git-svn-id: svn://anubis/gvsu@254 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
parent
1fd0ca3dcc
commit
379c744d3a
@ -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 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user