Skip to content

Commit

Permalink
change default alg
Browse files Browse the repository at this point in the history
  • Loading branch information
jClugstor committed Nov 8, 2024
1 parent 7b81c0d commit 54d6c2d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/OrdinaryDiffEqDefault/src/default_alg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 54d6c2d

Please sign in to comment.