Skip to content

Commit 6b20b44

Browse files
Merge pull request #77 from frankschae/change_solve
change `solve` to lower level interface `__solve`
2 parents dea31f3 + 03257ce commit 6b20b44

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/solve.jl

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
function SciMLBase.solve(prob::NonlinearProblem,
2-
alg::AbstractNonlinearSolveAlgorithm, args...;
3-
kwargs...)
1+
function SciMLBase.__solve(prob::NonlinearProblem,
2+
alg::AbstractNonlinearSolveAlgorithm, args...;
3+
kwargs...)
44
solver = init(prob, alg, args...; kwargs...)
55
sol = solve!(solver)
66
end
77

8-
function SciMLBase.init(prob::NonlinearProblem{uType, iip},
9-
alg::AbstractBracketingAlgorithm, args...;
10-
alias_u0 = false,
11-
maxiters = 1000,
12-
kwargs...) where {uType, iip}
8+
function SciMLBase.__init(prob::NonlinearProblem{uType, iip},
9+
alg::AbstractBracketingAlgorithm, args...;
10+
alias_u0 = false,
11+
maxiters = 1000,
12+
kwargs...) where {uType, iip}
1313
if !(prob.u0 isa Tuple)
1414
error("You need to pass a tuple of u0 in bracketing algorithms.")
1515
end
@@ -32,13 +32,13 @@ function SciMLBase.init(prob::NonlinearProblem{uType, iip},
3232
DEFAULT, cache, iip, prob)
3333
end
3434

35-
function SciMLBase.init(prob::NonlinearProblem{uType, iip}, alg::AbstractNewtonAlgorithm,
36-
args...;
37-
alias_u0 = false,
38-
maxiters = 1000,
39-
tol = 1e-6,
40-
internalnorm = DEFAULT_NORM,
41-
kwargs...) where {uType, iip}
35+
function SciMLBase.__init(prob::NonlinearProblem{uType, iip}, alg::AbstractNewtonAlgorithm,
36+
args...;
37+
alias_u0 = false,
38+
maxiters = 1000,
39+
tol = 1e-6,
40+
internalnorm = DEFAULT_NORM,
41+
kwargs...) where {uType, iip}
4242
if alias_u0
4343
u = prob.u0
4444
else

0 commit comments

Comments
 (0)