Skip to content

Commit cd48367

Browse files
no need for two warns
1 parent 9892aa7 commit cd48367

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/solve.jl

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -260,21 +260,12 @@ end
260260

261261
@deprecate concrete_solve(prob::DiffEqBase.DEProblem,alg::Union{DiffEqBase.DEAlgorithm,Nothing},
262262
u0=prob.u0,p=prob.p,args...;kwargs...) solve(prob,alg,args...;u0=u0,p=p,kwargs...)
263-
263+
264264
ZygoteRules.@adjoint function concrete_solve(prob::DiffEqBase.DEProblem,
265265
alg::Union{DiffEqBase.DEAlgorithm,Nothing},
266266
u0=prob.u0,p=prob.p,args...;
267267
sensealg=nothing,
268268
kwargs...)
269-
@warn("concrete_solve is deprecated. Only solve is required now.
270-
Additionally, new keyword arguments have been added for
271-
convenience of changing parameters and initial conditions, so
272-
concrete_solve(prob,alg,u0,p,args...;kwargs...) is equivalent
273-
to solve(prob,alg,args...;u0=u0,p=p,kwargs...). Note that
274-
the `u0` and `p` keyword arguments are not required and will
275-
be picked up automatically from the `DEProblem` if the `DEProblem`
276-
is defined in the differentiation context. So carry about your
277-
day using `solve`: nothing special is required for adjoints!")
278269
_concrete_solve_adjoint(prob,alg,sensealg,u0,p,args...;kwargs...)
279270
end
280271

0 commit comments

Comments
 (0)