Skip to content

Commit 7a54aab

Browse files
test: fix remake autodiff test
1 parent bbeb0ce commit 7a54aab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/downstream/remake_autodiff.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using OrdinaryDiffEq, ModelingToolkit, Zygote, SciMLSensitivity
2+
using SymbolicIndexingInterface
23
using ModelingToolkit: t_nounits as t, D_nounits as D
34

45
@variables x(t) o(t)
@@ -17,8 +18,8 @@ end
1718
lotka_volterra_sys = structural_simplify(lotka_volterra_sys, split = false)
1819
prob = ODEProblem(lotka_volterra_sys, [], (0.0, 10.0), [])
1920
sol = solve(prob, Tsit5(), reltol = 1e-6, abstol = 1e-6)
20-
u0 = [1.0, 1.0]
21-
p = [1.5, 1.0, 1.0, 1.0]
21+
setter = setsym_oop(prob, [unknowns(lotka_volterra_sys); parameters(lotka_volterra_sys)])
22+
u0, p = setter(prob, [1.0, 1.0, 1.5, 1.0, 1.0, 1.0])
2223

2324
function sum_of_solution(u0, p)
2425
_prob = remake(prob, u0 = u0, p = p)

0 commit comments

Comments
 (0)