How to use custom preconditioner? #2533
-
Hello all, I am currently working on using a custom matrix as a preconditioner for the PDE I wish to solve. I have read up a bit on Firedrake's AssembledPC class, but it is not clear from the documentation if this is what I am looking for or how I would implement it into the solve() parameters. In other words, I just want to be able to use a simple preconditioner matrix that I specify myself. Is there an easy way to implement this? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
To select a Python preconditioner you would say something like (let's say you want
If what you want to do is supply an approximate Jacobian for your solve, there are two ways to do it. You can either provide a bilinear form that defines your simple preconditioning matrix in the solve call. If you are using the The more extensible method is to implement a subclass of
|
Beta Was this translation helpful? Give feedback.
To select a Python preconditioner you would say something like (let's say you want
AssembledPC
):