Skip to content

Commit bcfa609

Browse files
Fix sol[end] -> sol.u[end] in noindex test
With RAT v4, sol[end] returns a scalar element instead of the last state vector. Use sol.u[end] to access the last state vector. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent bc1e73c commit bcfa609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/noindex_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ for alg in algs
111111
ca0, tspan, p
112112
)
113113
sol = solve(prob, alg; save_everystep = false)
114-
return 1 - norm(sol[end])^2
114+
return 1 - norm(sol.u[end])^2
115115
end
116116
@test_nowarn Zygote.gradient(cost, par)
117117
end

0 commit comments

Comments
 (0)