Skip to content
Snippets Groups Projects
Commit 8193b796 authored by Tom Fischer's avatar Tom Fischer
Browse files

[NL/TimeStepping] Check if (timestep, delta_t) vector is valid

parent 120580fd
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,12 @@ std::unique_ptr<TimeStepAlgorithm> createFixedTimeStepping( ...@@ -49,6 +49,12 @@ std::unique_ptr<TimeStepAlgorithm> createFixedTimeStepping(
//! \ogs_file_param{prj__time_loop__processes__process__time_stepping__FixedTimeStepping__timesteps__pair__delta_t} //! \ogs_file_param{prj__time_loop__processes__process__time_stepping__FixedTimeStepping__timesteps__pair__delta_t}
pair.getConfigParameter<double>("delta_t")); pair.getConfigParameter<double>("delta_t"));
} }
if (!FixedTimeStepping::areRepeatDtPairsValid(repeat_dt_pairs))
{
OGS_FATAL(
"CreateFixedTimeStepping: invalid specification of (repeat, "
"delta_t) pairs");
}
return std::make_unique<FixedTimeStepping>( return std::make_unique<FixedTimeStepping>(
t_initial, t_end, repeat_dt_pairs, fixed_times_for_output); t_initial, t_end, repeat_dt_pairs, fixed_times_for_output);
......
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