Skip to content

Commit

Permalink
Fix an error in cg_lanczos_shift.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Jan 17, 2025
1 parent e290727 commit 2e5ed14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cg_lanczos_shift.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ kwargs_cg_lanczos_shift = (:M, :ldiv, :check_curvature, :atol, :rtol, :itmax, :t
ktypeof(b) <: S || error("ktypeof(b) is not a subtype of $S")

# Set up workspace.
allocate_if(!MisI, solver, :v, S, solver.x) # The length of v is n
allocate_if(!MisI, solver, :v, S, solver.Mv) # The length of v is n
Mv, Mv_prev, Mv_next = solver.Mv, solver.Mv_prev, solver.Mv_next
x, p, σ, δhat = solver.x, solver.p, solver.σ, solver.δhat
ω, γ, rNorms, converged = solver.ω, solver.γ, solver.rNorms, solver.converged
Expand Down

0 comments on commit 2e5ed14

Please sign in to comment.