[petsc-users] Using external matrix as ILU preconditioner
Milan Pelletier
milan.pelletier at protonmail.com
Fri Aug 6 07:51:23 CDT 2021
Dear PETSc users,
I would like to know if it is possible to provide PETSc with a ILU-preconditioner matrix computed externally beforehand.
I tried and built a PCSHELL, to which I pass the externally-computed preconditioner matrix as "Pmat" using the KSPSetOperators function. Then I wanted to use that Pmat in PCApply by calling MatSolve as it seems to be done in the ILU case. Though, this fails since the mat->ops->solve (with mat being my PC Matrix) is a null pointer.
I guess the way I set the matrix (as a MATSEQAIJ) is not sufficient for PETSc to know what function to use as MatSolve.
How could I achieve providing my own ILU-decomposed matrix and feed PETSc's PCG with it? Is it actually possible?
Thanks for your help,
Milan Pelletier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20210806/fd2b07ea/attachment.html>
More information about the petsc-users
mailing list