Skip to content

Commit 88e614c

Browse files
committed
add log bookkeeping
1 parent 4991c0e commit 88e614c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/idrs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ function idrs_method!(log::ConvergenceHistory, X, A, C::T,
8585
end
8686

8787
if normR <= tol # Initial guess is a good enough solution
88+
setconv(log, 0<=normR<tol)
8889
return X
8990
end
9091

@@ -159,7 +160,6 @@ function idrs_method!(log::ConvergenceHistory, X, A, C::T,
159160
push!(log, :resnorm, normR)
160161
verbose && @printf("%3d\t%1.2e\n",iter,normR)
161162
if normR < tol || iter == maxiter
162-
shrink!(log)
163163
setconv(log, 0<=normR<tol)
164164
return X
165165
end

0 commit comments

Comments
 (0)