Commit 67885622 authored by COULAUD Olivier's avatar COULAUD Olivier
Browse files

Add min, max time for the tree builder

parent ca0df0a7
...@@ -169,8 +169,14 @@ int main(int argc, char* argv[]) ...@@ -169,8 +169,14 @@ int main(int argc, char* argv[])
delete[] particles; delete[] particles;
time.tac(); time.tac();
std::cout << "Done " << "(@Creating and Inserting Particles = " double timeUsed = time.elapsed();
<< time.elapsed() << "s)." << std::endl; double minTime,maxTime;
std::cout << "Done " << "(@Reading and Inserting Particles = " << time.elapsed() << "s)." << std::endl;
MPI_Reduce(&timeUsed,&minTime,1,MPI_DOUBLE,MPI_MIN,0,app.global().getComm());
MPI_Reduce(&timeUsed,&maxTime,1,MPI_DOUBLE,MPI_MAX,0,app.global().getComm());
if(app.global().processId() == 0){
printf("Reading and Inserting Particles Time used : \t MIN : %f \t MAX %f in s\n",minTime,maxTime);
}
} // ----------------------------------------------------- } // -----------------------------------------------------
{ // ----------------------------------------------------- { // -----------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment