Skip to content

How to set sparsity pattern and relaxation steps for ISAI preconditioner? #1119

Answered by fritzgoebel
learning-chip asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, thanks for reaching out!
You seem to have already found the sparsity power parameter, that's great. For the relaxation steps, you can have a look at the example ir-ilu-preconditioned-solver. In line 120, there is a triangular solver defined as iterative refinement with block-Jacobi as the inner solver. If you replace the block-Jacobi with your ISAI factory, you should end up with what you are looking for. That would look something like

    auto isai_factory =
        gko::share(gko::preconditioner::LowerIsai<value_type, index_type>::build() 
                       .with_sparsity_power(2) 
                       .on(this->exec));

    auto trisolve_factory =
        gko::solver::Ir<val…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@learning-chip
Comment options

Answer selected by learning-chip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1118 on September 13, 2022 13:46.