<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div>&nbsp;&nbsp;If you want to use, for example, GMRES as the preconditioner in FGMRES then you use -pc_type ksp -ksp_ksp_type gmres &nbsp;-ksp_ksp_max_it 10 -ksp_pc_type ilu etc&nbsp;<div><br></div><div>&nbsp;&nbsp;The best way to find options is to run with -help&nbsp;</div><div><br></div><div>&nbsp;&nbsp; The reason for the "extra" ksp in front of the last four options is that it is setting the options for the inner ksp&nbsp;</div><div><br></div><div>&nbsp;&nbsp; Note that this is all automatically recursive to any level of imbedded solvers.</div><div><br></div><div>&nbsp;&nbsp; I will this example to the KSPFGMRES manual page.<br><div><br></div><div>&nbsp;&nbsp; &nbsp;Barry</div><div><br><div><div>On Sep 3, 2010, at 9:53 AM, Matthew Knepley wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">On Fri, Sep 3, 2010 at 4:45 PM, Liu Lin 刘林 <span dir="ltr">&lt;<a href="mailto:sixthseason@gmail.com">sixthseason@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
HI, every one!<br>How to set the parameters of FGMRES inner iterative? such as the restart number, the preconditioner method ?</blockquote><div><br></div><div>1) There is no inner iterative method in FGMRES</div><div><br>
</div><div>2) <a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/KSP/KSPFGMRES.html">http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/KSP/KSPFGMRES.html</a></div>
<div><br></div><div>3) -pc_type</div><div><br></div><div>&nbsp;&nbsp; Matt</div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font color="#888888"><br>-- <br>-------------------------------------------------------------------------------<font class="Apple-style-span"><font class="Apple-style-span" color="#888888"><br>
</font></font></font></blockquote></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>

</blockquote></div><br></div></div></body></html>