Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit fd62cce

Browse files
format
1 parent c3705e4 commit fd62cce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/raphson.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ function SciMLBase.solve(prob::NonlinearProblem,
4949
error("SimpleNewtonRaphson currently only supports out-of-place nonlinear problems")
5050
end
5151

52-
atol = abstol !== nothing ? abstol : real(oneunit(eltype(T))) * (eps(real(one(eltype(T)))))^(4 // 5)
52+
atol = abstol !== nothing ? abstol :
53+
real(oneunit(eltype(T))) * (eps(real(one(eltype(T)))))^(4 // 5)
5354
rtol = reltol !== nothing ? reltol : eps(real(one(eltype(T))))^(4 // 5)
5455

5556
if typeof(x) <: Number
@@ -78,5 +79,7 @@ function SciMLBase.solve(prob::NonlinearProblem,
7879
end
7980
xo = x
8081
end
82+
83+
@show x, fx
8184
return SciMLBase.build_solution(prob, alg, x, fx; retcode = ReturnCode.MaxIters)
8285
end

0 commit comments

Comments
 (0)