Minor performance fix with Timer
This commit is contained in:
parent
dd21dd3985
commit
5772b4cdb0
@ -336,6 +336,7 @@ runAnalysis::~runAnalysis( )
|
||||
}
|
||||
void runAnalysis::finish( )
|
||||
{
|
||||
PROFILE_START("finish");
|
||||
// Wait for the work items to finish
|
||||
d_tpool.wait_pool_finished();
|
||||
// Clear the wait ids
|
||||
@ -345,6 +346,7 @@ void runAnalysis::finish( )
|
||||
d_wait_restart.reset();
|
||||
// Syncronize
|
||||
MPI_Barrier( d_comm );
|
||||
PROFILE_STOP("finish");
|
||||
}
|
||||
|
||||
|
||||
|
@ -613,12 +613,10 @@ int main(int argc, char **argv)
|
||||
// Run the analysis
|
||||
analysis.run( timestep, *Averages, Phi, Pressure, Velocity, fq, Den );
|
||||
|
||||
// Save the timers
|
||||
if ( timestep%50==0 )
|
||||
PROFILE_SAVE("lbpm_color_simulator",1);
|
||||
}
|
||||
analysis.finish();
|
||||
PROFILE_STOP("Loop");
|
||||
PROFILE_SAVE("lbpm_color_simulator",1);
|
||||
//************************************************************************
|
||||
ScaLBL_DeviceBarrier();
|
||||
MPI_Barrier(comm);
|
||||
|
Loading…
Reference in New Issue
Block a user