11/*
2- * Copyright (C) 2020-2025 MEmilio
2+ * Copyright (C) 2020-2026 MEmilio
33*
44* Authors: Rene Schmieding, Daniel Abele, Martin J. Kuehn
55*
@@ -132,9 +132,9 @@ void flowless_sim(::benchmark::State& state)
132132 // create simulation
133133 // exclude integrator creation from benchmark
134134 state.PauseTiming ();
135- std::unique_ptr<mio::OdeIntegratorCore<ScalarType>> I =
136- std::make_unique< mio::ControlledStepperWrapper<ScalarType, boost::numeric::odeint::runge_kutta_cash_karp54>>(
137- cfg.abs_tol , cfg.rel_tol , cfg.dt_min , cfg.dt_max );
135+ std::unique_ptr<mio::OdeIntegratorCore<ScalarType>> I = std::make_unique<
136+ mio::ControlledStepperWrapper<ScalarType, boost::numeric::odeint::runge_kutta_cash_karp54>>(
137+ cfg.abs_tol , cfg.rel_tol , cfg.dt_min , cfg.dt_max );
138138 state.ResumeTiming ();
139139 // This code gets timed
140140 results = mio::simulate (cfg.t0 , cfg.t_max , cfg.dt , model, std::move (I));
@@ -157,9 +157,9 @@ void flow_sim_comp_only(::benchmark::State& state)
157157 for (auto _ : state) {
158158 // create simulation
159159 state.PauseTiming ();
160- std::unique_ptr<mio::OdeIntegratorCore<ScalarType>> I =
161- std::make_unique< mio::ControlledStepperWrapper<ScalarType, boost::numeric::odeint::runge_kutta_cash_karp54>>(
162- cfg.abs_tol , cfg.rel_tol , cfg.dt_min , cfg.dt_max );
160+ std::unique_ptr<mio::OdeIntegratorCore<ScalarType>> I = std::make_unique<
161+ mio::ControlledStepperWrapper<ScalarType, boost::numeric::odeint::runge_kutta_cash_karp54>>(
162+ cfg.abs_tol , cfg.rel_tol , cfg.dt_min , cfg.dt_max );
163163 state.ResumeTiming ();
164164 // This code gets timed
165165 results = mio::simulate (cfg.t0 , cfg.t_max , cfg.dt , model, std::move (I));
@@ -182,9 +182,9 @@ void flow_sim(::benchmark::State& state)
182182 for (auto _ : state) {
183183 // create simulation
184184 state.PauseTiming ();
185- std::unique_ptr<mio::OdeIntegratorCore<ScalarType>> I =
186- std::make_unique< mio::ControlledStepperWrapper<ScalarType, boost::numeric::odeint::runge_kutta_cash_karp54>>(
187- cfg.abs_tol , cfg.rel_tol , cfg.dt_min , cfg.dt_max );
185+ std::unique_ptr<mio::OdeIntegratorCore<ScalarType>> I = std::make_unique<
186+ mio::ControlledStepperWrapper<ScalarType, boost::numeric::odeint::runge_kutta_cash_karp54>>(
187+ cfg.abs_tol , cfg.rel_tol , cfg.dt_min , cfg.dt_max );
188188 state.ResumeTiming ();
189189 // This code gets timed
190190 results = mio::simulate_flows (cfg.t0 , cfg.t_max , cfg.dt , model, std::move (I))[0 ];
0 commit comments