Skip to content

Commit aad35d5

Browse files
author
Daniel Ruprecht
committed
added some comments to test_scalar
1 parent f5d2966 commit aad35d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/examples/scalar/test_scalar.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ using namespace ::testing;
1212
#include "../examples/scalar/scalar_sdc.cpp"
1313
#undef PFASST_UNIT_TESTING
1414

15+
// I could not get this matcher to do what I want...
1516
MATCHER(MyDoubleMore, "")
1617
{
1718
return get<0>(arg) > get<1>(arg);
@@ -107,6 +108,9 @@ TEST_P(ConvergenceTest, GaussNodes)
107108
testing::DoubleNear(double(2 * nnodes - 2), 0.99)) << "Convergence rate at node "
108109
<< i
109110
<< " not within expected range";
111+
112+
// convergence rates for legendre nodes should be 2*nodes but is actually better and
113+
// this is why DoubleNear fails. Need something like DoubleMore ...
110114
EXPECT_THAT(convrate_legendre[i],
111115
testing::DoubleNear(double(2 * nnodes ), 0.9)) << "Convergence rate at node "
112116
<< i

0 commit comments

Comments
 (0)