<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 &quot;-pc_type &lt;option_name&gt;&quot; ? <br><br>(2)<br>Also suppose the succeeding statement of KSPSetOperators is KSPSetFromOptions(ksp_context) and I pass &quot;-pc_type none&quot; at the terminal, would this mean that Pmat is not at all needed<br>
in PETSc&#39;s calculations?? <br><br>Thank you,<br><br>Gaurish<br><br><br><br><br><br></font></pre>