Skip to content

Commit d738dcc

Browse files
committed
Propagate Iteration Statistics
1 parent d354ab1 commit d738dcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/simplegmres.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ function SciMLBase.solve!(cache::SimpleGMRESCache{false}, lincache::LinearCache)
369369
cache.warm_start = false
370370

371371
return SciMLBase.build_linear_solution(lincache.alg, x, rNorm, lincache;
372-
retcode = status)
372+
retcode = status, iters = iter)
373373
end
374374

375375
function _init_cacheval(::Val{true}, alg::SimpleGMRES, A, b, u, Pl, Pr, maxiters::Int,
@@ -595,5 +595,5 @@ function SciMLBase.solve!(cache::SimpleGMRESCache{true}, lincache::LinearCache)
595595
warm_start && !restart && axpy!(one(T), Δx, x)
596596

597597
return SciMLBase.build_linear_solution(lincache.alg, x, rNorm, lincache;
598-
retcode = status)
598+
retcode = status, iters = iter)
599599
end

0 commit comments

Comments
 (0)