Skip to content

Commit 9aecbfd

Browse files
chore: DEQ handling
1 parent 2dfbc6e commit 9aecbfd

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/concrete_solve.jl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,8 +1776,15 @@ function DiffEqBase._concrete_solve_adjoint(
17761776
# this is something that needs changing in the future, but
17771777
# this is the applicable till the movement to structuaral
17781778
# tangents is completed
1779-
dp, _, _ = canonicalize(Tunable(), dp)
1780-
dp, nothing
1779+
dp, Δtunables = if isscimlstructure(dp)
1780+
dp, _, _ = canonicalize(Tunable(), dp)
1781+
dp, nothing
1782+
elseif isfunctor(dp)
1783+
dp, _ = Functors.functor(dp)
1784+
dp, nothing
1785+
else
1786+
dp, nothing
1787+
end
17811788
else
17821789
dp, Δtunables = if isscimlstructure(p)
17831790
Δp = setproperties(dp, to_nt.prob.p))

0 commit comments

Comments
 (0)