Skip to content

Commit 8b93144

Browse files
Merge pull request #997 from DhairyaLGandhi/dg/rmnonlinear
Remove `literal_adjoint(::NoTimeSolution)`
2 parents 793fee7 + a216d3a commit 8b93144

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

ext/SciMLBaseZygoteExt.jl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -235,16 +235,6 @@ end
235235
NonlinearSolution{T, N, uType, R, P, A, O, uType2}(u, args...), NonlinearSolutionAdjoint
236236
end
237237

238-
@adjoint function literal_getproperty(sol::SciMLBase.AbstractNoTimeSolution,
239-
::Val{:u})
240-
function solu_adjoint(Δ)
241-
zerou = zero(sol.prob.u0)
242-
= @. ifelse=== nothing, zerou, Δ)
243-
(build_solution(sol.prob, sol.alg, _Δ, sol.resid),)
244-
end
245-
sol.u, solu_adjoint
246-
end
247-
248238
@adjoint function literal_getproperty(sol::SciMLBase.LinearSolution, ::Val{:u})
249239
function solu_adjoint(Δ)
250240
zerou = zero(sol.u)

0 commit comments

Comments
 (0)