Skip to content

Commit

Permalink
Update examples with IncompleteLU preconditioners
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison authored and dpo committed Nov 3, 2020
1 parent 66b396b commit a2bc746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/test_cgs.jl
Expand Up @@ -15,8 +15,8 @@ F = ilu(A, τ = 0.05)
yM = zeros(n)
yN = zeros(n)
yP = zeros(n)
opM = LinearOperator(Float64, n, n, false, false, y -> (yM .= y ; IncompleteLU.forward_substitution_without_diag!(F.L, yM)))
opN = LinearOperator(Float64, n, n, false, false, y -> (yN .= y ; IncompleteLU.transposed_backward_substitution!(F.U, yN)))
opM = LinearOperator(Float64, n, n, false, false, y -> forward_substitution!(yM, F, y))
opN = LinearOperator(Float64, n, n, false, false, y -> backward_substitution!(yN, F, y))
opP = LinearOperator(Float64, n, n, false, false, y -> ldiv!(yP, F, y))

# Without preconditioning
Expand Down

0 comments on commit a2bc746

Please sign in to comment.