<pre><font style="font-family: arial,helvetica,sans-serif;" size="2">I am quite confused on using pre-conditioners in PETSc<br><br>(1)<br>When we use KSPSetOperators(KSP ksp,Mat Amat,Mat Pmat,MatStructure flag), why does the manual page say that Pmat is usually the same as Amat? <br>
Is Pmat the preconditioning matrix itself, or is Pmat a matrix to which preconditioning techniques must be applied via "-pc_type <option_name>" ? <br><br>(2)<br>Also suppose the succeeding statement of KSPSetOperators is KSPSetFromOptions(ksp_context) and I pass "-pc_type none" at the terminal, would this mean that Pmat is not at all needed<br>
in PETSc's calculations?? <br><br>Thank you,<br><br>Gaurish<br><br><br><br><br><br></font></pre>