@@ -54,11 +54,15 @@ class ConvergenceTest
5454 this ->nsteps = { 2 , 4 , 6 , 8 , 10 };
5555 this ->nnodes_in_call = this ->nnodes + 2 ;
5656 break ;
57-
58- /*
57+
5958 case pfasst::QuadratureType::GaussRadau:
59+ this ->niters = 2 * this ->nnodes - 1 ;
60+ this ->Tend = 5.0 ;
61+ this ->lambda = complex <double >(-1.0 , 2.0 );
62+ this ->nsteps = { 4 , 6 , 8 , 10 , 12 };
63+ this ->nnodes_in_call = this ->nnodes + 1 ;
6064 break ;
61-
65+ /*
6266 case pfasst::QuadratureType::ClenshawCurtis:
6367 break;
6468
@@ -129,10 +133,18 @@ TEST_P(ConvergenceTest, GaussNodes)
129133 << " not within expected range." ;
130134 break ;
131135
132- /*
136+
133137 case pfasst::QuadratureType::GaussRadau:
138+ // convergence rate for Radau nodes should be 2*nodes-1
139+ // For some case, the convergence rate is ALMOST that value, hence put in the 0.99
140+ EXPECT_THAT (convrate[i], Ge<double >(0.99 * 2 * this ->nnodes - 1 )) << " Convergence rate for "
141+ << this ->nnodes
142+ << " Gauss-Radu nodes "
143+ << " at node " << i
144+ << " not within expected range." ;
134145 break ;
135-
146+
147+ /*
136148 case pfasst::QuadratureType::ClenshawCurtis:
137149 break;
138150
@@ -151,8 +163,8 @@ TEST_P(ConvergenceTest, GaussNodes)
151163INSTANTIATE_TEST_CASE_P (ScalarSDC, ConvergenceTest,
152164 Combine (Range<size_t >(2 , 7 ),
153165 Values(pfasst::QuadratureType::GaussLobatto,
154- pfasst::QuadratureType::GaussLegendre/* ,
155- pfasst::QuadratureType::GaussRadau,
166+ pfasst::QuadratureType::GaussLegendre,
167+ pfasst::QuadratureType::GaussRadau/* ,
156168 pfasst::QuadratureType::ClenshawCurtis,
157169 pfasst::QuadratureType::Uniform*/ ))
158170);
0 commit comments