Skip to content

Commit

Permalink
Merge pull request #595 from AayushSabharwal/as/fix-trait
Browse files Browse the repository at this point in the history
fix: remove type piracy of `alg_autodiff`
  • Loading branch information
ChrisRackauckas authored Dec 12, 2024
2 parents 7ea7f8e + 0cbbae6 commit 75c7627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/alg_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ _alg_autodiff(::StochasticDiffEqNewtonAdaptiveAlgorithm{T, AD}) where {T, AD} =
_alg_autodiff(::StochasticDiffEqJumpNewtonAdaptiveAlgorithm{T, AD}) where {T, AD} = Val{AD}()
_alg_autodiff(::StochasticDiffEqJumpNewtonDiffusionAdaptiveAlgorithm{T, AD}) where {T, AD} = Val{AD}()

function OrdinaryDiffEqCore.alg_autodiff(alg)
function OrdinaryDiffEqCore.alg_autodiff(alg::Union{StochasticDiffEqAlgorithm, StochasticDiffEqRODEAlgorithm})
ad = _alg_autodiff(alg)
if ad == Val(false)
return ADTypes.AutoFiniteDiff()
Expand Down

0 comments on commit 75c7627

Please sign in to comment.