Minor change in main:
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user