Skip to content

Commit 4a414d5

Browse files
committed
IDRS: Move preconditioning
1 parent 02b577b commit 4a414d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/idrs.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ function idrs_method!(log::ConvergenceHistory, X, A, C::T,
131131
Q .+= c[i-k+1] .* U[i]
132132
end
133133

134-
# Preconditioning
135-
ldiv!(Pl, V)
136-
137134
# Compute new U[:,k] and G[:,k], G[:,k] is in space G_j
138135
V .= R .- V
139136

137+
# Preconditioning
138+
ldiv!(Pl, V)
139+
140140
U[k] .= Q .+ om .* V
141141
mul!(G[k], A, U[k])
142142

0 commit comments

Comments
 (0)