Skip to content

Commit b77a55a

Browse files
committed
fix adjoint constructor for nonlinearsolution
1 parent f9f725b commit b77a55a

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
@@ -230,7 +230,7 @@ end
230230
uType2
231231
}
232232
function NonlinearSolutionAdjoint(ȳ)
233-
(ȳ, ntuple(_ -> nothing, length(args))...)
233+
(ȳ.u, ntuple(_ -> nothing, length(args))...)
234234
end
235235
NonlinearSolution{T, N, uType, R, P, A, O, uType2}(u, args...), NonlinearSolutionAdjoint
236236
end

0 commit comments

Comments
 (0)