Skip to content
Snippets Groups Projects
Commit afa36fdf authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'fix/timeloop-checkpoint-eps' into 'master'

[timeloop] Remove additional scaling, epsilon is already relative

Closes #685

See merge request !1552
parents 0d8ff5f4 d2b0a425
No related branches found
No related tags found
1 merge request!1552[timeloop] Remove additional scaling, epsilon is already relative
......@@ -419,14 +419,14 @@ public:
//! Check point management, TimeLoop::isCheckPoint() has to be called after this!
// if we reached a periodic check point
if (periodicCheckPoints_ && Dune::FloatCmp::eq(nextTime, lastPeriodicCheckPoint_ + deltaPeriodicCheckPoint_, 1e-8*dt))
if (periodicCheckPoints_ && Dune::FloatCmp::eq(nextTime, lastPeriodicCheckPoint_ + deltaPeriodicCheckPoint_, 1e-7))
{
lastPeriodicCheckPoint_ += deltaPeriodicCheckPoint_;
isCheckPoint_ = true;
}
// or a manually set check point
else if (!checkPoints_.empty() && Dune::FloatCmp::eq(nextTime, checkPoints_.front(), 1e-8*dt))
else if (!checkPoints_.empty() && Dune::FloatCmp::eq(nextTime, checkPoints_.front(), 1e-7))
{
checkPoints_.pop();
isCheckPoint_ = true;
......@@ -482,7 +482,7 @@ public:
<< " seconds with the next check point at " << lastPeriodicCheckPoint_ + interval << " seconds." << std::endl;
// check if the current time point is a check point
if (Dune::FloatCmp::eq(this->time(), lastPeriodicCheckPoint_, 1e-8*interval))
if (Dune::FloatCmp::eq(this->time(), lastPeriodicCheckPoint_, 1e-7))
isCheckPoint_ = true;
// make sure we respect this check point on the next time step
......
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