Bug #1292

BornAgain does not build on mac os x (unittest SpecialFunctionsTest.csinc failure)

Added by ganeva almost 5 years ago. Updated almost 5 years ago.

Status:ResolvedStart date:02 Feb 2016
Priority:NormalDue date:
Assignee:wuttke% Done:

0%

Category:-
Target version:-

Description

Fails SpecialFunctionsTest.csinc unittest during the BornAgain compilation.

The error message:

=======================

[ RUN ] SpecialFunctionsTest.csinc
/Users/ganeva/build/bornagain/BornAgain/Tests/UnitTests/TestCore/SpecialFunctionsTest.h:86: Failure
The difference between (MathFunctions::sinc(z)).real() and (1.-z*z/6.).real() is 3.3306690738754696e-16, which exceeds eps, where
(MathFunctions::sinc(z)).real() evaluates to 0.99999999999999889,
(1.-z*z/6.).real() evaluates to 0.99999999999999856, and
eps evaluates to 2.2999999999999999e-16.
/Users/ganeva/build/bornagain/BornAgain/Tests/UnitTests/TestCore/SpecialFunctionsTest.h:84: Failure
The difference between (MathFunctions::sinc(z)).real() and (1.-z*z/6.).real() is 4.4408920985006262e-16, which exceeds eps, where
(MathFunctions::sinc(z)).real() evaluates to 1.0000000000000357,
(1.-z*z/6.).real() evaluates to 1.0000000000000362, and
eps evaluates to 2.2999999999999999e-16.
/Users/ganeva/build/bornagain/BornAgain/Tests/UnitTests/TestCore/SpecialFunctionsTest.h:90: Failure
The difference between (MathFunctions::sinc(z)).real() and (1.-z*z/6.*(1.-z*z/20.)).real() is 3.3306690738754696e-16, which exceeds eps, where
(MathFunctions::sinc(z)).real() evaluates to 0.99999999999999201,
(1.-z*z/6.*(1.-z*z/20.)).real() evaluates to 0.99999999999999167, and
eps evaluates to 2.2999999999999999e-16.
/Users/ganeva/build/bornagain/BornAgain/Tests/UnitTests/TestCore/SpecialFunctionsTest.h:81: Failure
The difference between (MathFunctions::sinc(z)).real() and (1.-z*z/6.).real() is 3.3306690738754696e-16, which exceeds eps, where
(MathFunctions::sinc(z)).real() evaluates to 0.99999999999999933,
(1.-z*z/6.).real() evaluates to 0.99999999999999967, and
eps evaluates to 2.2999999999999999e-16.
[ FAILED ] SpecialFunctionsTest.csinc (0 ms)

=======================

History

#1 Updated by wuttke almost 5 years ago

  • Status changed from New to Resolved
  • Assignee set to wuttke

hopefully resolved in develop/9320d89bf (eps relaxed to 4.7e-16)

Also available in: Atom PDF