-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add P argument to solve function #3555
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems sensible. Thanks!
It would be nice to have a test for this but I think that might be tricky to come up with. We don't even test the P
argument to LinearSolver
as things stand.
Thanks for the quick reply! I think a short unit test would indeed be difficult to find. I am using the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
To quote @dham re the suggested demo: "yes yes yes please". Demos are always great to have. |
@juliusgh please could you rebase this code on top of the latest |
…#3552) Also default to L2 projection. --------- Co-authored-by: David A. Ham <[email protected]> Co-authored-by: Jack Betteridge <[email protected]>
* update checkout and upload to v4 This reverts commit 8e9b151. * Update more actions * Update comments
Head branch was pushed to by a user without write access
Ok, I have rebased on top of
Thanks for the feedback! I need some time to finish a well documented demo and would submit a new PR later. |
The rebase appears to have gone a bit wrong (the "Files changed" is now quite large). I have created a fresh PR with just your commits: #3571. I will close this one. |
Oh sorry. Thanks! |
The class
LinearSolver
already supports passing a custom preconditioner matrixP
to the PETSc solver.However, this is so far not available through the
solve
function.This PR adds an argument
P
to thesolve
function that is passed to theLinearSolver
. At least in my case, it would be convenient to pass a custom preconditioner matrix directly in this way.