<div class="gmail_quote">On Tue, May 31, 2011 at 08:02, Danesh Daroui <span dir="ltr"><<a href="mailto:danesh.daroui@ltu.se">danesh.daroui@ltu.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":4ef">I have a complex system of equations and I use PETSc to solve the<br>
system. I also use MKL to create the preconditioner using ILU. The ILU<br>
preconditioner is created only on the real part of the coefficient<br>
matrix and is stored in CSR format with the data type of double<br>
precision. I wanted to ask if it is possible to use this preconditioner<br>
and pass it to PETSc in CSR format? Can it be used with PETSc complex<br>
solver although the preconditioner is in double precision format?</div></blockquote></div><br><div>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.</div>