Skip to content

Commit 4568ca8

Browse files
author
Matthew Emmett
committed
test: Loosen tolerances.
1 parent 80a911d commit 4568ca8

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

tests/examples/advection_diffusion/test_mpi_advection_diffusion.cpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@
1919

2020
using namespace std;
2121

22-
// MATCHER(DoubleNear, "")
23-
// {
24-
// return abs(get<0>(arg) - get<1>(arg)) < 1e-15;
25-
// }
26-
27-
// MATCHER(DoubleLess, "")
28-
// {
29-
// return get<0>(arg) < get<1>(arg);
30-
// }
31-
3222
TEST(ErrorTest, MPIPFASST)
3323
{
3424
typedef error_map::value_type vtype;
@@ -41,10 +31,10 @@ TEST(ErrorTest, MPIPFASST)
4131
auto max_iter = get_iter(*std::max_element(errors.begin(), errors.end(),
4232
[get_iter](const vtype p1, const vtype p2) { return get_iter(p1) < get_iter(p2); }));
4333

44-
vector<double> ex = { 1.1168843627729075e-13, 4.8849813083506888e-13, 5.3268500721515011e-13, 2.3059332221464501e-12 };
34+
vector<double> ex = { 1.1168e-13, 4.8849e-13, 5.3268e-13, 2.3059e-12 };
4535
for (auto& x: errors) {
4636
if (get_iter(x) == max_iter) {
47-
EXPECT_NEAR(get_error(x), ex[get_step(x)], 1e-15);
37+
EXPECT_NEAR(get_error(x), ex[get_step(x)], 1e-14);
4838
}
4939
}
5040
}

0 commit comments

Comments
 (0)