Skip to content
Snippets Groups Projects
Commit ae5e0902 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[NL/TS] Fix delta_t computation for n steps

parent b823237c
No related branches found
No related tags found
No related merge requests found
...@@ -52,8 +52,8 @@ FixedTimeSteppingParameters parseFixedTimeStepping( ...@@ -52,8 +52,8 @@ FixedTimeSteppingParameters parseFixedTimeStepping(
*n_steps); *n_steps);
} }
// Create the RepeatDtPair // Create the RepeatDtPair
std::size_t const t_step = static_cast<std::size_t>( double const t_step =
(t_end - t_initial) / static_cast<double>(*n_steps)); (t_end - t_initial) / static_cast<double>(*n_steps);
std::vector const repeat_pairs = { std::vector const repeat_pairs = {
RepeatDtPair{static_cast<std::size_t>(*n_steps), t_step}}; RepeatDtPair{static_cast<std::size_t>(*n_steps), t_step}};
return {t_initial, t_end, repeat_pairs}; return {t_initial, t_end, repeat_pairs};
......
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