Skip to content

Commit 37732aa

Browse files
committed
Fix docs and remove error
Signed-off-by: ErikQQY <2283984853@qq.com>
1 parent 7bd22e8 commit 37732aa

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

docs/pages.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ pages = ["index.md",
2828
"api/sundials.md",
2929
"api/steadystatediffeq.md",
3030
"api/leastsquaresoptim.md",
31-
"api/fastlevenbergmarquardt.md"],
31+
"api/fastlevenbergmarquardt.md",
32+
"api/siamfanlequations.md"],
3233
"Release Notes" => "release_notes.md",
3334
]

ext/NonlinearSolveSIAMFANLEquationsExt.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ function SciMLBase.__solve(prob::NonlinearProblem, alg::SIAMFANLEquationsJL, arg
3636
retcode = ReturnCode.MaxIters
3737
elseif res.errcode == 1
3838
retcode = ReturnCode.Failure
39-
@error("Line search failed")
4039
elseif res.errcode == -1
4140
retcode = ReturnCode.Default
42-
@info("Initial iterate satisfies the termination criteria")
4341
end
4442
stats = method == :pseudotransient ? nothing : (SciMLBase.NLStats(res.stats.ifun[1], res.stats.ijac[1], -1, -1, res.stats.iarm[1]))
4543
return SciMLBase.build_solution(prob, alg, res.solution, res.history; retcode, stats)
@@ -85,10 +83,8 @@ function SciMLBase.__solve(prob::NonlinearProblem, alg::SIAMFANLEquationsJL, arg
8583
retcode = ReturnCode.MaxIters
8684
elseif res.errcode == 1
8785
retcode = ReturnCode.Failure
88-
@error("Line search failed")
8986
elseif res.errcode == -1
9087
retcode = ReturnCode.Default
91-
@info("Initial iterate satisfies the termination criteria")
9288
end
9389
stats = method == :pseudotransient ? nothing : (SciMLBase.NLStats(res.stats.ifun[1], res.stats.ijac[1], -1, -1, res.stats.iarm[1]))
9490
return SciMLBase.build_solution(prob, alg, res.solution, res.history; retcode, stats)
@@ -161,10 +157,8 @@ function SciMLBase.__solve(prob::NonlinearProblem, alg::SIAMFANLEquationsJL, arg
161157
retcode = ReturnCode.MaxIters
162158
elseif res.errcode == 1
163159
retcode = ReturnCode.Failure
164-
@error("Line search failed")
165160
elseif res.errcode == -1
166161
retcode = ReturnCode.Default
167-
@info("Initial iterate satisfies the termination criteria")
168162
end
169163

170164

0 commit comments

Comments
 (0)