Skip to content

Commit

Permalink
Update NonlinearSolve.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Jan 18, 2023
1 parent 1758eca commit 45d6195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NonlinearSolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ import SnoopPrecompile

SnoopPrecompile.@precompile_all_calls begin for T in (Float32, Float64)
prob = NonlinearProblem{false}((u, p) -> u .* u .- p, T(0.1), T(2))
for alg in (NewtonRaphson,TrustRegion)
for alg in (NewtonRaphson,)
solve(prob, alg(), abstol = T(1e-2))
end

prob = NonlinearProblem{true}((du, u, p) -> du[1] = u[1] * u[1] - p[1], T[0.1], T[2])
for alg in (NewtonRaphson,TrustRegion)
for alg in (NewtonRaphson,)
solve(prob, alg(), abstol = T(1e-2))
end
end end
Expand Down

0 comments on commit 45d6195

Please sign in to comment.