<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div> If you want to use, for example, GMRES as the preconditioner in FGMRES then you use -pc_type ksp -ksp_ksp_type gmres -ksp_ksp_max_it 10 -ksp_pc_type ilu etc <div><br></div><div> The best way to find options is to run with -help </div><div><br></div><div> The reason for the "extra" ksp in front of the last four options is that it is setting the options for the inner ksp </div><div><br></div><div> Note that this is all automatically recursive to any level of imbedded solvers.</div><div><br></div><div> I will this example to the KSPFGMRES manual page.<br><div><br></div><div> 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"><<a href="mailto:sixthseason@gmail.com">sixthseason@gmail.com</a>></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> Matt</div><div> </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>