Skip to content

Commit 77374ca

Browse files
Fix depwarns
1 parent 7f225ac commit 77374ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/downstream/ensemble_ad.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ function sum_of_e_solution(p)
8181
saveat = 0.1))
8282
sol = solve(ensemble_prob, Tsit5(), EnsembleSerial(), trajectories = N, abstol = 1e-12,
8383
reltol = 1e-12)
84-
z = Array(sol[1])
85-
cache[] = sol[1].t
84+
z = Array(sol.u[1])
85+
cache[] = sol.u[1].t
8686
sum(z) # just test for the first solutions, gradients should be zero for others
8787
end
8888

0 commit comments

Comments
 (0)