Skip to content

Commit 80a911d

Browse files
author
Matthew Emmett
committed
tests: Update expected solutions and tighten tolerances.
1 parent c05d7fa commit 80a911d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/examples/advection_diffusion/test_mpi_advection_diffusion.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ TEST(ErrorTest, MPIPFASST)
4141
auto max_iter = get_iter(*std::max_element(errors.begin(), errors.end(),
4242
[get_iter](const vtype p1, const vtype p2) { return get_iter(p1) < get_iter(p2); }));
4343

44-
vector<double> ex = { 1.224103e-10, 5.145808e-10, 3.389905e-9, 1.920198e-7 };
44+
vector<double> ex = { 1.1168843627729075e-13, 4.8849813083506888e-13, 5.3268500721515011e-13, 2.3059332221464501e-12 };
4545
for (auto& x: errors) {
4646
if (get_iter(x) == max_iter) {
47-
EXPECT_NEAR(get_error(x), ex[get_step(x)], 1e-12);
47+
EXPECT_NEAR(get_error(x), ex[get_step(x)], 1e-15);
4848
}
4949
}
5050
}

0 commit comments

Comments
 (0)