We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
solve!
1 parent 31525cc commit 3511dc8Copy full SHA for 3511dc8
lib/NonlinearSolveBase/src/solve.jl
@@ -7,6 +7,13 @@ function SciMLBase.__solve(
7
end
8
9
function CommonSolve.solve!(cache::AbstractNonlinearSolveCache)
10
+ if cache.retcode == ReturnCode.InitialFailure
11
+ return SciMLBase.build_solution(
12
+ cache.prob, cache.alg, get_u(cache), get_fu(cache);
13
+ cache.retcode, cache.stats, cache.trace
14
+ )
15
+ end
16
+
17
while not_terminated(cache)
18
CommonSolve.step!(cache)
19
0 commit comments