Skip to content

Commit

Permalink
use the given diff_type
Browse files Browse the repository at this point in the history
  • Loading branch information
jClugstor committed Dec 9, 2024
1 parent 8e58479 commit 6a1dbf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OrdinaryDiffEqCore/src/misc_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ end

function _bool_to_ADType(::Val{false}, chunksize, diff_type)
Base.depwarn("Using a `Bool` for keyword argument `autodiff` is deprecated. Please use an `ADType` specifier.", :_bool_to_ADType)
return AutoFiniteDiff(fdtype = diff_type())
return AutoFiniteDiff(fdtype = diff_type)
end

# Functions to get ADType type from Bool or ADType object, or ADType type
Expand Down

0 comments on commit 6a1dbf7

Please sign in to comment.