Skip to content

Commit b017cea

Browse files
author
Daniel Ruprecht
committed
small fix in use of u0 -- skipped tests are passed for Gauss-Legendre nodes
1 parent e1617ea commit b017cea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_imexsweeper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def test_updateformula(self):
135135
level.sweep.compute_end_point()
136136
uend_sweep = level.uend.values
137137
# Compute end value from matrix formulation
138-
uend_mat = u0.values + step.status.dt*level.sweep.coll.weights.dot(ustages*(problem.lambda_s[0] + problem.lambda_f[0]))
138+
uend_mat = self.pparams['u0'] + step.status.dt*level.sweep.coll.weights.dot(ustages*(problem.lambda_s[0] + problem.lambda_f[0]))
139139
assert np.linalg.norm(uend_sweep - uend_mat, np.infty)<1e-14, "Update formula in sweeper gives different result than matrix update formula"
140140

141141
#

0 commit comments

Comments
 (0)