37#include <boost/test/unit_test.hpp>
45 double ad2 = ad1 * (1.0 + 2 * std::numeric_limits<double>::epsilon());
49 double ad4 = ad3 * (1.0 + 2 * std::numeric_limits<double>::epsilon());
57 double ad2 = ad1 * (1.0 + 50 * std::numeric_limits<double>::epsilon());
61 double ad4 = ad3 * (1.0 + 50 * std::numeric_limits<double>::epsilon());
69 double ad2 = ad1 * (1.0 + std::numeric_limits<double>::epsilon());
73 double ad4 = ad3 * (1.0 + std::numeric_limits<double>::epsilon());
81 double ad2 = ad1 * (1.0 + 50 * std::numeric_limits<double>::epsilon());
104 double ad1 = 1.00001;
117 const double ad1 = 0.0;
126 const double ad2 = 1.0;
148#if defined(NEKTAR_DEBUG) || defined(NEKTAR_FULLDEBUG)
bool IsRealEqual(T1 &&lhs, T2 &&rhs, const unsigned int factor=NekConstants::kNekFloatCompFact)
compare reals of same type with relative tolerance
BOOST_AUTO_TEST_CASE(TestRealComparisonSmall)