Skip to content

Commit 14bb3bc

Browse files
committed
use the given diff_type
1 parent df50b90 commit 14bb3bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/OrdinaryDiffEqCore/src/misc_utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ end
140140

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

146146
# Functions to get ADType type from Bool or ADType object, or ADType type

0 commit comments

Comments
 (0)