Minor change in main:

This commit is contained in:
Christian
2019-07-19 15:11:07 +02:00
parent 79110bdbda
commit a60bcd2823
+4 -1
View File
@@ -22,7 +22,9 @@ int main(int argc, char *argv[]) {
int start_time = MPI_Wtime();
Sim.doit();
cout<<"Total Time: "<<MPI_Wtime()-start_time<<" s\n";
if (rank == 0) {
cout<<"Total Time: "<<MPI_Wtime()-start_time<<" s\n";
}
/*
clock_t start = clock();
@@ -30,6 +32,7 @@ int main(int argc, char *argv[]) {
cout<<"Duration: "<< ( clock() - start ) / (double) CLOCKS_PER_SEC <<"\n";
*/
MPI_Finalize();
return 0;
}