Skip to content

Commit a0c5512

Browse files
committed
test: fix test
Looks like `SciMLStructures.replace` no longer accepts `AbstractArray`s
1 parent e8d9f20 commit a0c5512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lotka_volterra.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ res = solve(op, Adam(), maxiters = 5000)#, callback = plot_cb)
114114

115115
@test res.objective < 1
116116

117-
res_p = SciMLStructures.replace(Tunable(), prob.p, res)
117+
res_p = SciMLStructures.replace(Tunable(), prob.p, res.u)
118118
res_prob = remake(prob, p = res_p)
119119
res_sol = solve(res_prob, Rodas4(), saveat = sol_ref.t)
120120

0 commit comments

Comments
 (0)