Skip to content

Commit 0f6e2de

Browse files
committed
set abstol/reltol in history
1 parent 6b86f16 commit 0f6e2de

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/cg.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ function cg!(x, A, b;
221221
Pl = Identity(),
222222
kwargs...)
223223
history = ConvergenceHistory(partial = !log)
224-
history[:tol] = tol
224+
history[:abstol] = abstol
225+
history[:reltol] = reltol
225226
log && reserve!(history, :resnorm, maxiter + 1)
226227

227228
# TODO: Deprecations introduced in v0.8

src/chebyshev.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ function chebyshev!(x, A, b, λmin::Real, λmax::Real;
155155
verbose::Bool=false,
156156
initially_zero::Bool=false)
157157
history = ConvergenceHistory(partial=!log)
158-
history[:tol] = tol
158+
history[:abstol] = abstol
159+
history[:reltol] = reltol
159160
reserve!(history, :resnorm, maxiter)
160161

161162
verbose && @printf("=== chebyshev ===\n%4s\t%7s\n","iter","resnorm")

src/gmres.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ function gmres!(x, A, b;
194194
initially_zero::Bool = false,
195195
verbose::Bool = false)
196196
history = ConvergenceHistory(partial = !log, restart = restart)
197-
history[:tol] = tol
197+
history[:abstol] = abstol
198+
history[:reltol] = reltol
198199
log && reserve!(history, :resnorm, maxiter)
199200

200201
# TODO: Deprecations introduced in v0.8

0 commit comments

Comments
 (0)