From 379c744d3a983dc574117dbabf92649a4aebe9e0 Mon Sep 17 00:00:00 2001 From: josh Date: Sun, 23 Nov 2008 16:05:51 +0000 Subject: [PATCH] updated git-svn-id: svn://anubis/gvsu@254 45c1a28c-8058-47b2-ae61-ca45b979098e --- cs677/hw4/src/transpose.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cs677/hw4/src/transpose.cc b/cs677/hw4/src/transpose.cc index f97ff5d..584af5a 100644 --- a/cs677/hw4/src/transpose.cc +++ b/cs677/hw4/src/transpose.cc @@ -96,7 +96,11 @@ int main(int argc, char * argv[]) for (int i = 0; i < p; i++) { if (my_rank == i) + { + cout << "Process " << i << " matrix:" << endl; printMatrix(&matrix[0][0], n, n); + cout << endl; + } 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++) { if (my_rank == i) + { + cout << "Process " << i << " matrix:" << endl; printMatrix(&matrix[0][0], n, n); + cout << endl; + } MPI_Barrier(MPI_COMM_WORLD); /* for printint coherently */ }