Skip to content

Commit

Permalink
Set ITP as the default method for interval problems
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Oct 17, 2023
1 parent ac448ea commit e1301cb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/SimpleNonlinearSolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ include("batched/raphson.jl")
include("batched/dfsane.jl")
include("batched/broyden.jl")

## Default algorithm

# Set the default bracketing method to ITP

function SciMLBase.solve(prob::IntervalNonlinearProblem; kwargs...)
SciMLBase.solve(prob, ITP(); kwargs...)

Check warning on line 54 in src/SimpleNonlinearSolve.jl

View check run for this annotation

Codecov / codecov/patch

src/SimpleNonlinearSolve.jl#L53-L54

Added lines #L53 - L54 were not covered by tests
end

function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::Nothing,

Check warning on line 57 in src/SimpleNonlinearSolve.jl

View check run for this annotation

Codecov / codecov/patch

src/SimpleNonlinearSolve.jl#L57

Added line #L57 was not covered by tests
args...; kwargs...)
SciMLBase.solve(prob, ITP(), args...; kwargs...)

Check warning on line 59 in src/SimpleNonlinearSolve.jl

View check run for this annotation

Codecov / codecov/patch

src/SimpleNonlinearSolve.jl#L59

Added line #L59 was not covered by tests
end

import PrecompileTools

PrecompileTools.@compile_workload begin
Expand Down

0 comments on commit e1301cb

Please sign in to comment.