Skip to content

Commit

Permalink
Finish this for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBreuling committed Jun 10, 2024
1 parent b4d9758 commit 6be25b3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/test_dae.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,10 @@ def test_integration_rational(vectorized, method, t_span, jac):
parameters_stiff = product(
["BDF"], # method
["stability", "efficiency", None], # NDF_strategy
[1, 2, 3, 4, 5, 6], # max_order
[1e-2, 1e-3], # first_step
[2, 3, 4, 5, 6], # max_order
)
@pytest.mark.parametrize("method, NDF_strategy, max_order, first_step", parameters_stiff)
def test_integration_stiff(method, NDF_strategy, max_order, first_step):
@pytest.mark.parametrize("method, NDF_strategy, max_order", parameters_stiff)
def test_integration_stiff(method, NDF_strategy, max_order):
def fun_robertson(t, state):
x, y, z = state
return [
Expand All @@ -223,7 +222,7 @@ def F_robertson(t, state, statep):

res = solve_dae(F_robertson, tspan, y0, yp0, rtol=rtol,
atol=atol, method=method, max_order=max_order,
NDF_strategy=NDF_strategy, first_step=first_step)
NDF_strategy=NDF_strategy)

# If the stiff mode is not activated correctly, these numbers will be much
# bigger (see max_order=1 case)
Expand Down

0 comments on commit 6be25b3

Please sign in to comment.