Skip to content

Commit edbaf7a

Browse files
Update tests for MTK resorting
Some of the tests assumed a value ordering
1 parent a52b61c commit edbaf7a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/interface/stiffness_detection_test.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using OrdinaryDiffEq, Test, ADTypes
2-
import ODEProblemLibrary: van
2+
import ODEProblemLibrary: prob_ode_vanderpol
33
using ForwardDiff: Dual
44

5-
prob1 = ODEProblem(van, [0, 2.0], (0.0, 6), inv(0.003))
5+
sys = prob_ode_vanderpol.f.sys
6+
prob1 = ODEProblem(sys, [sys.y => 0, sys.x => 2.0], (0.0, 6), [sys.μ => inv(0.003)])
67
function __van(du, u, p, t)
78
μ = p[1]
89
du[1] = μ * ((1 - u[2]^2) * u[1] - u[2])

0 commit comments

Comments
 (0)