Skip to content

Commit 615647d

Browse files
chore: dispatch getindex adjoint on AbstractNonlinearSolution
1 parent 1c615be commit 615647d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/SciMLBaseZygoteExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ end
162162
VA[sym], ODESolution_getindex_pullback
163163
end
164164

165-
@adjoint function Base.getindex(VA::SciMLBase.NonlinearSolution, sym)
165+
@adjoint function Base.getindex(VA::SciMLBase.AbstractNonlinearSolution, sym)
166166
function NonlinearSolution_getindex_pullback(Δ)
167167
i = symbolic_type(sym) != NotSymbolic() ? variable_index(VA, sym) : sym
168168
if is_observed(VA, sym)

0 commit comments

Comments
 (0)