On Tue, May 31, 2011 at 08:02, Danesh Daroui <danesh.daroui at ltu.se> wrote:
> I have a complex system of equations and I use PETSc to solve the > system. I also use MKL to create the preconditioner using ILU. The ILU > preconditioner is created only on the real part of the coefficient > matrix and is stored in CSR format with the data type of double > precision. I wanted to ask if it is possible to use this preconditioner > and pass it to PETSc in CSR format? Can it be used with PETSc complex > solver although the preconditioner is in double precision format? > You can create a PCShell() that manages the factorization using MKL and applies the preconditioner stored in whatever format MKL likes. PETSc would not know that it is ILU or otherwise. It sounds like that would do what you want. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110531/7750e2fa/attachment.htm>
