<p>Try the simple option I just sent.</p>
<div class="gmail_quote">On Oct 28, 2012 6:38 AM, "w_ang_temp" <<a href="mailto:w_ang_temp@163.com">w_ang_temp@163.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="line-height:1.7;font-size:14px;font-family:arial"><div>Hello, Jed</div>
<div>    Thanks for your timely reply. I deal with the soil-water coupled problem in geotechnical engineering,  </div>
<div>whose stiffness matrix is ill-conditioned. I have did some work about it, mainly finding the effective</div>
<div>solvers and preconditioners. I used the command line option like this:</div>
<div>mpiexec -n 4 ./ex4f -ksp_type cgs -pc_type sor -ksp_rtol 1.0e-15 -ksp_converged_reason.</div>
<div>    So, I also want to use the multigrid just like the simple command. There is only a little introduction</div>
<div>about multigrid in the manual. Multigrid is complex and not a easy thing for me, so I just need to konw how</div>
<div>to use it simply in PETSc to solve the Ax=b system.</div>
<div>    Thanks.</div>
<div>                                                               Jim<br><br><br><br><br></div>
<div></div>
<div></div>
<div><br></div>>At 2012-10-28 21:17:00,"Jed Brown" <<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex">
<p>>Algebraic multigrid can be used directly, -pc_type gamg -pc_gamg_agg_nsmooths 1. Geometric either required that you use the PCMG interface to set >interpolation (and provide a coarse operator for non-Galerkin) or use a DM that provides coarsening capability.</p>

<p>>What kind of problem are you solving?</p>
<div class="gmail_quote">>>On Oct 28, 2012 6:09 AM, "w_ang_temp" <<a href="mailto:w_ang_temp@163.com" target="_blank">w_ang_temp@163.com</a>> wrote:<br type="attribution">
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div style="LINE-HEIGHT:1.7;FONT-FAMILY:arial;FONT-SIZE:14px">
<div>>>Hello,</div>
<div>>>   I want to use the multigrid as a preconditioner. The introduction about it in the manual is little.</div>
<div>>>So are there some typical examples or details about multigrid? Is it used just like other preconditioners</div>
<div>>>like jacobi, sor, which can be simply used in the cammand line options?</div>
<div>>>   Thanks.</div>
<div>>>                                                                       Jim</div></div><br><br><span title="neteasefooter"><span></span></span></blockquote></div></blockquote></div><br><br><span title="neteasefooter"><span></span></span></blockquote>
</div>