Skip to content

Commit 833ad5a

Browse files
author
Daniel Ruprecht
committed
test_collocation and test_imexsweeper now performs tests for four types of quadrature nodes: Legendre, Lobatto, Radau_Right and Radau_Left
1 parent 1c320ba commit 833ad5a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tests/test_imexsweeper.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ def test_sweepequalmatrix(self):
116116
def test_updateformula(self):
117117
for type in classes:
118118
self.swparams['collocation_class'] = getattr(pySDC.CollocationClasses, type)
119-
120119
step, level, problem, nnodes = self.setupLevelStepProblem()
121120
level.sweep.predict()
122121
u0full = np.array([ level.u[l].values.flatten() for l in range(1,nnodes+1) ])
@@ -197,15 +196,13 @@ def test_manysweepsequalmatrix(self):
197196
Mat_sweep = level.sweep.get_scalar_problems_manysweep_mat( nsweeps = K, lambdas = lambdas )
198197
usweep_onematrix = Mat_sweep.dot(u0full)
199198
assert np.linalg.norm( usweep_onematrix - usweep, np.infty )<1e-14, "Single-matrix multiple sweep formulation yields different result than multiple sweeps in node-to-node or matrix form form"
200-
201199

202200
#
203201
# Make sure that update function for K sweeps computed from K-sweep matrix gives same result as K sweeps in node-to-node form plus compute_end_point
204202
#
205203
def test_manysweepupdate(self):
206204
for type in classes:
207205
self.swparams['collocation_class'] = getattr(pySDC.CollocationClasses, type)
208-
209206
step, level, problem, nnodes = self.setupLevelStepProblem()
210207
step.levels[0].sweep.predict()
211208
u0full = np.array([ level.u[l].values.flatten() for l in range(1,nnodes+1) ])
@@ -229,7 +226,6 @@ def test_manysweepupdate(self):
229226
uend_matrix = update*self.pparams['u0']
230227
assert abs(uend_matrix - uend_sweep)<1e-14, "Node-to-node sweep plus update yields different result than update function computed through K-sweep matrix"
231228

232-
233229
#
234230
# Make sure that creating a sweeper object with a collocation object with right_is_node=False and do_coll_update=False throws an exception
235231
#

0 commit comments

Comments
 (0)