Minor change in main:

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