From 54d6c2ddbeaeed20426b46de6967de4544ab215b Mon Sep 17 00:00:00 2001 From: jClugstor Date: Thu, 7 Nov 2024 11:57:17 -0500 Subject: [PATCH] change default alg --- lib/OrdinaryDiffEqDefault/src/default_alg.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/OrdinaryDiffEqDefault/src/default_alg.jl b/lib/OrdinaryDiffEqDefault/src/default_alg.jl index 9347a6192c..77b67910dc 100644 --- a/lib/OrdinaryDiffEqDefault/src/default_alg.jl +++ b/lib/OrdinaryDiffEqDefault/src/default_alg.jl @@ -40,10 +40,12 @@ function isdefaultalg(alg::CompositeAlgorithm{ end function DiffEqBase.__init(prob::ODEProblem, ::Nothing, args...; kwargs...) - DiffEqBase.init(prob, DefaultODEAlgorithm(autodiff = false), args...; wrap = Val(false), kwargs...) + DiffEqBase.init( + prob, DefaultODEAlgorithm(autodiff = AutoFiniteDiff()), args...; kwargs...) end function DiffEqBase.__solve(prob::ODEProblem, ::Nothing, args...; kwargs...) - DiffEqBase.solve(prob, DefaultODEAlgorithm(autodiff = false), args...; wrap = Val(false), kwargs...) + DiffEqBase.solve( + prob, DefaultODEAlgorithm(autodiff = AutoFiniteDiff()), args...; kwargs...) end function is_stiff(integrator, alg, ntol, stol, is_stiffalg, current)