Skip to content
Snippets Groups Projects
Commit 0b283fe9 authored by Marco D'Antonio's avatar Marco D'Antonio
Browse files

Removed unused profiler

parent 83fe2898
No related branches found
No related tags found
No related merge requests found
...@@ -242,22 +242,16 @@ void solver_mainloop(const model& mod, State& state, maxwell::parameter_loader& ...@@ -242,22 +242,16 @@ void solver_mainloop(const model& mod, State& state, maxwell::parameter_loader&
prepare_sources(mod, state, mpl); prepare_sources(mod, state, mpl);
#ifdef ENABLE_PROFILING
auto& solver_prof = state.logger.get_profiler("solver iteration");
#endif /* ENABLE_PROFILING */
for(size_t i = 0; i < num_timesteps; i++) for(size_t i = 0; i < num_timesteps; i++)
{ {
timecounter_cpu tc; timecounter_cpu tc;
tc.tic(); tc.tic();
PROFILER_TIC(solver_prof);
mpl.call_timestep_callback(i); mpl.call_timestep_callback(i);
timestep(mod, state, mpl, ti); timestep(mod, state, mpl, ti);
do_sources(mod, state, mpl); do_sources(mod, state, mpl);
swap(state, mpl); swap(state, mpl);
PROFILER_TOC(solver_prof);
double time = tc.toc(); double time = tc.toc();
total_iteration_time += time; total_iteration_time += time;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment