Skip to content

Commit

Permalink
Add a verbose output in BiLQ
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison authored and dpo committed Nov 16, 2019
1 parent f7f6b12 commit 43228b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bilq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function bilq(A :: AbstractLinearOperator, b :: AbstractVector{T}; c :: Abstract

rNorms = [bNorm;]
ε = atol + rtol * bNorm
verbose && @printf("%5s %7s\n", "k", "‖rₖ‖")
verbose && @printf("%5d %7.1e\n", iter, bNorm)

# Initialize the Lanczos biorthogonalization process.
Expand All @@ -66,7 +67,7 @@ function bilq(A :: AbstractLinearOperator, b :: AbstractVector{T}; c :: Abstract
solved_lq = bNorm ε
solved_cg = false
breakdown = false
tired = false
tired = iter itmax
status = "unknown"

while !(solved_lq || solved_cg || tired || breakdown)
Expand Down

0 comments on commit 43228b3

Please sign in to comment.