Skip to content

Commit

Permalink
chore: replace rather than repack
Browse files Browse the repository at this point in the history
  • Loading branch information
DhairyaLGandhi committed Jun 27, 2024
1 parent ba214c3 commit 783cc82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/concrete_solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1238,13 +1238,13 @@ function DiffEqBase._concrete_solve_adjoint(
SciMLBase.FullSpecialize
}(_f,
_g),
u0 = _u0, p = repack(_p), tspan = _tspan)
u0 = _u0, p = SciMLStructures.replace(Tunable(), p, _p), tspan = _tspan)
else
_prob = remake(prob,
f = DiffEqBase.parameterless_type(prob.f){false,
SciMLBase.FullSpecialize
}(_f),
u0 = _u0, p = repack(_p), tspan = _tspan)
u0 = _u0, p = SciMLStructures.replace(Tunable(), p, _p), tspan = _tspan)
end
elseif prob isa
Union{SciMLBase.AbstractODEProblem, SciMLBase.AbstractSDEProblem}
Expand Down

0 comments on commit 783cc82

Please sign in to comment.