Skip to content

Commit

Permalink
Update src/NonlinearSolve.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Avik Pal <[email protected]>
  • Loading branch information
ChrisRackauckas and avik-pal authored Oct 2, 2023
1 parent 670a4bf commit f93cd7a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/NonlinearSolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ import PrecompileTools
for T in (Float32, Float64)
prob = NonlinearProblem{false}((u, p) -> u .* u .- p, T(0.1), T(2))

precompile_algs = if VERSION v"1.7"
(NewtonRaphson(), TrustRegion(), LevenbergMarquardt())
else
(NewtonRaphson(),)
end
precompile_algs = (NewtonRaphson(), TrustRegion(), LevenbergMarquardt())

for alg in precompile_algs
solve(prob, alg, abstol = T(1e-2))
Expand Down

0 comments on commit f93cd7a

Please sign in to comment.