Skip to content

How to use custom preconditioner? #2533

Discussion options

You must be logged in to vote

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?

To select a Python preconditioner you would say something like (let's say you want AssembledPC):

parameters={
  "pc_type": "python",
  "pc_python_type": "firedrake.AssembledPC",
  "assembled": {"pc_type": "lu"} # configure the PC on the assembled operator ins…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by andrewlhicks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants