mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-22 09:16:27 -06:00
changed: run test for a x different than pi
this to workaround roundoff differences occuring near sin(pi) on different compilers/hardware
This commit is contained in:
parent
0c13b92315
commit
e8386a32c1
@ -208,7 +208,7 @@ BOOST_AUTO_TEST_CASE(Cosine)
|
||||
|
||||
const double atol = 1.0e-14;
|
||||
|
||||
const AdFW x = AdFW::variable(3.14159265358979323846264338327950288);
|
||||
const AdFW x = AdFW::variable(3.14159265358979323846264338327950288/3.0);
|
||||
|
||||
const AdFW f = std::cos(x);
|
||||
BOOST_CHECK_CLOSE(f.val(), std::cos(x.val()), atol);
|
||||
|
Loading…
Reference in New Issue
Block a user