Skip to content
Snippets Groups Projects
Commit 975a264e authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[test][timeloop] use relative criterion for tend

parent fec96cdf
No related branches found
No related tags found
1 merge request!3618[TimeLoop] define base tolerance
......@@ -69,7 +69,7 @@ void testTimeLoops(double tStart,
timeLoop.finalize();
if (std::abs(timeLoop.time()-tEnd) > 1e-15)
if (std::abs(timeLoop.time()-tEnd) > 1e-15*timeSpan)
DUNE_THROW(Dune::InvalidStateException, "Ended with wrong end time!");
}
......@@ -150,7 +150,7 @@ void testTimeLoops(double tStart,
timeLoop.finalize();
if (std::abs(timeLoop.time()-1e9*timeSpan) > 1e-15)
if (std::abs(timeLoop.time()-1e9*timeSpan) > 1e-15*timeSpan)
DUNE_THROW(Dune::InvalidStateException, "Ended with wrong end time!");
}
......
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