Skip to content

Commit

Permalink
[T] Relax component norm unit-test's tolerances.
Browse files Browse the repository at this point in the history
This might relate to the different computation order
for vectorized vs. non-vectorized eigen computations.
  • Loading branch information
endJunction committed Aug 21, 2017
1 parent 9c6522b commit 3cf8004
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/NumLib/TestComponentNorms.cpp
Expand Up @@ -143,7 +143,7 @@ TEST(MPITest_NumLib, ComponentNormMultiComponent1)
unsigned const num_components = 3;
auto const norm_type = MathLib::VecNormType::NORM1;
auto const tolerance =
num_components * 600 * std::numeric_limits<double>::epsilon();
num_components * 800 * std::numeric_limits<double>::epsilon();

do_test(num_components, norm_type, tolerance,
[](double n_total, double n) { return n_total + n; },
Expand All @@ -159,7 +159,7 @@ TEST(MPITest_NumLib, ComponentNormMultiComponent2)
unsigned const num_components = 3;
auto const norm_type = MathLib::VecNormType::NORM2;
auto const tolerance =
num_components * 20 * std::numeric_limits<double>::epsilon();
num_components * 22 * std::numeric_limits<double>::epsilon();

do_test(num_components, norm_type, tolerance,
[](double n_total, double n) { return n_total + n*n; },
Expand Down

0 comments on commit 3cf8004

Please sign in to comment.