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

[PL] TL; Explicitly check for t == end time.

For very small dt other checks fail.
parent fd2eed4b
No related branches found
No related tags found
No related merge requests found
...@@ -491,7 +491,7 @@ bool TimeLoop::loop() ...@@ -491,7 +491,7 @@ bool TimeLoop::loop()
timesteps, t, *_output, &Output::doOutput); timesteps, t, *_output, &Output::doOutput);
} }
if (t + dt > _end_time || if (t == _end_time || t + dt > _end_time ||
t + std::numeric_limits<double>::epsilon() > _end_time) t + std::numeric_limits<double>::epsilon() > _end_time)
{ {
break; break;
......
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