diff --git a/lib/OrdinaryDiffEqCore/src/initialize_dae.jl b/lib/OrdinaryDiffEqCore/src/initialize_dae.jl index 991bb5a665..e88deeef1a 100644 --- a/lib/OrdinaryDiffEqCore/src/initialize_dae.jl +++ b/lib/OrdinaryDiffEqCore/src/initialize_dae.jl @@ -163,7 +163,7 @@ function _initialize_dae!(integrator, prob::Union{ODEProblem, DAEProblem}, isAD = if initializeprob.u0 === nothing AutoForwardDiff elseif has_autodiff(integrator.alg) - nameof(alg_autodiff(integrator.alg)) == :AutoForwardDiff + alg_autodiff(integrator.alg) isa AutoForwardDiff else true end