Skip to content

Commit

Permalink
Only time Hydro_Integrator after the first time step
Browse files Browse the repository at this point in the history
  • Loading branch information
bcaddy committed Aug 24, 2023
1 parent da283ee commit caa659d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/grid/grid3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ Real Grid3D::Update_Grid(void)
#endif

#ifdef CPU_TIME
Timer.Hydro_Integrator.Start();
if (H.n_step > 0) Timer.Hydro_Integrator.Start();
#endif // CPU_TIME

// Run the hydro integrator on the grid
Expand Down Expand Up @@ -469,7 +469,7 @@ Real Grid3D::Update_Grid(void)
}

#ifdef CPU_TIME
Timer.Hydro_Integrator.End();
if (H.n_step > 0) Timer.Hydro_Integrator.End();
#endif // CPU_TIME

#ifdef CUDA
Expand Down

0 comments on commit caa659d

Please sign in to comment.