mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 10:40:21 -06:00
Merge pull request #44 from akva2/fix_roundoff_issue_in_syntax_test
changed: run test for a x different than pi
This commit is contained in:
commit
f4dfab1e37
@ -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