<div class="gmail_quote">On Tue, Jun 5, 2012 at 12:48 PM, RenZhengYong <span dir="ltr"><<a href="mailto:renzhengyong@gmail.com" target="_blank">renzhengyong@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Petsc users, <br><font><br style="font-family:georgia,serif"><span style="font-family:georgia,serif">My purpose is to solve AmatX=b, A is a symmetric indefinite matrix. </span><br style="font-family:georgia,serif"><span style="font-family:georgia,serif">Here, I read the manual about the usage of preconditioned GMRES method:</span><br style="font-family:georgia,serif">
<span style="font-family:georgia,serif">Given a matrix Pmat which is a good approximation to Amat, and call</span><br style="font-family:georgia,serif"></font><pre style="font-family:georgia,serif"><font>PetscErrorCode KSPSetOperators(KSP ksp,Mat Amat,Mat Pmat,MatStructure flag).<br>
<br>My question is: If I have an explicit good approximation (T) to the inverse of the Amat (that is T=Pmat^{_1}), <br>which call will be used to tell the KSP of having this explicit preconditioner. </font></pre></blockquote>
<div><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/PC/PCMAT.html">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/PC/PCMAT.html</a></div></div>