File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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...
1516MATCHER (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
You can’t perform that action at this time.
0 commit comments