Skip to content

Commit

Permalink
fix compatibility with Val(::Bool) for other algs
Browse files Browse the repository at this point in the history
  • Loading branch information
jClugstor committed Nov 12, 2024
1 parent 865517e commit 4ada725
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/OrdinaryDiffEqDifferentiation/src/alg_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ end
function alg_autodiff(alg)
autodiff = _alg_autodiff(alg)

if autodiff == Val{true}
if autodiff == Val(true)
return AutoForwardDiff()
elseif autodiff == Val{false}
elseif autodiff == Val(false)
return AutoFiniteDiff()
elseif nameof(autodiff) == :AutoForwardDiff
return AutoForwardDiff()
Expand Down

0 comments on commit 4ada725

Please sign in to comment.