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