Skip to content

Commit 2dfbc6e

Browse files
chore: rm dead code
1 parent a83cd29 commit 2dfbc6e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/concrete_solve.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ function DiffEqBase._concrete_solve_adjoint(
300300
tunables, repack = Functors.functor(p)
301301
end
302302

303+
u0 = state_values(prob) === nothing ? Float64[] : u0
303304
default_sensealg = automatic_sensealg_choice(prob, u0, tunables, verbose, repack)
304305
DiffEqBase._concrete_solve_adjoint(prob, alg, default_sensealg, u0, p,
305306
originator::SciMLBase.ADOriginator, args...; verbose,

src/gauss_adjoint.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,7 @@ end
224224
## Force recompile mode until vjps are specialized to handle this!!!
225225
f = if sol.prob.f isa ODEFunction &&
226226
sol.prob.f.f isa FunctionWrappersWrappers.FunctionWrappersWrapper
227-
# ODEFunction{isinplace(sol.prob), true}(unwrapped_f(sol.prob.f))
228-
ODEFunction{false, true}(unwrapped_f(sol.prob.f))
227+
ODEFunction{isinplace(sol.prob), true}(unwrapped_f(sol.prob.f))
229228
else
230229
sol.prob.f
231230
end
@@ -584,9 +583,6 @@ function _adjoint_sensitivities(sol, sensealg::GaussAdjoint, alg; t = nothing,
584583

585584
tstops = ischeckpointing(sensealg, sol) ? checkpoints : similar(current_time(sol), 0)
586585

587-
@show adj_prob.f.initialization_data
588-
@show kwargs
589-
@show adj_prob.kwargs
590586
adj_sol = solve(
591587
adj_prob, alg; abstol = abstol, reltol = reltol, save_everystep = false,
592588
save_start = false, save_end = true, saveat = eltype(state_values(sol, 1))[], tstops = tstops,

0 commit comments

Comments
 (0)