Skip to content

Commit 4638d8b

Browse files
committed
fix adjoint constructor for nonlinearsolution
1 parent ecdc172 commit 4638d8b

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
@@ -228,7 +228,7 @@ end
228228
uType2
229229
}
230230
function NonlinearSolutionAdjoint(ȳ)
231-
(ȳ, ntuple(_ -> nothing, length(args))...)
231+
(ȳ.u, ntuple(_ -> nothing, length(args))...)
232232
end
233233
NonlinearSolution{T, N, uType, R, P, A, O, uType2}(u, args...), NonlinearSolutionAdjoint
234234
end

0 commit comments

Comments
 (0)