updated
git-svn-id: svn://anubis/gvsu@255 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
parent
379c744d3a
commit
21cfbd35a4
@ -2,6 +2,7 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <mpi.h>
|
#include <mpi.h>
|
||||||
|
#include <unistd.h> /* usleep() */
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -101,7 +102,9 @@ int main(int argc, char * argv[])
|
|||||||
printMatrix(&matrix[0][0], n, n);
|
printMatrix(&matrix[0][0], n, n);
|
||||||
cout << endl;
|
cout << endl;
|
||||||
}
|
}
|
||||||
MPI_Barrier(MPI_COMM_WORLD); /* for printint coherently */
|
MPI_Barrier(MPI_COMM_WORLD); /* for printing coherently */
|
||||||
|
usleep(100000);
|
||||||
|
MPI_Barrier(MPI_COMM_WORLD);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Populate the displacements array */
|
/* Populate the displacements array */
|
||||||
@ -145,7 +148,9 @@ int main(int argc, char * argv[])
|
|||||||
printMatrix(&matrix[0][0], n, n);
|
printMatrix(&matrix[0][0], n, n);
|
||||||
cout << endl;
|
cout << endl;
|
||||||
}
|
}
|
||||||
MPI_Barrier(MPI_COMM_WORLD); /* for printint coherently */
|
MPI_Barrier(MPI_COMM_WORLD); /* for printing coherently */
|
||||||
|
usleep(100000);
|
||||||
|
MPI_Barrier(MPI_COMM_WORLD);
|
||||||
}
|
}
|
||||||
|
|
||||||
MPI_Finalize();
|
MPI_Finalize();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user