Skip to content

Commit

Permalink
fix calc_t derivative
Browse files Browse the repository at this point in the history
  • Loading branch information
jClugstor committed Nov 29, 2024
1 parent f9002b2 commit 30e9ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OrdinaryDiffEqDifferentiation/src/derivative_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function calc_tderivative!(integrator, cache, dtd1, repeat_step)
autodiff_alg
end

autodiff_alg = ADTypes.dense_ad(alg_autodiff(alg))
autodiff_alg = alg_autodiff(alg) isa AutoSparse ? ADTypes.dense_ad(alg_autodiff(alg)) : alg_autodiff(alg)
DI.derivative!(tf, linsolve_tmp, dT, cache.grad_config, autodiff_alg, t)
end
end
Expand Down

0 comments on commit 30e9ab6

Please sign in to comment.