On Fri, Jun 15, 2012 at 4:22 AM, Xuefeng Li <span dir="ltr"><<a href="mailto:li@loyno.edu" target="_blank">li@loyno.edu</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">
On Fri, 15 Jun 2012, Matthew Knepley wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, Jun 15, 2012 at 3:08 AM, Xuefeng Li <<a href="mailto:li@loyno.edu" target="_blank">li@loyno.edu</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Are there any database keys to control the number of<br>
times KSP_Solve() is called? Where is the loop that<br>
calls KSP_Solve?  The key -ksp_max_it does not seem<br>
to affect it.<br>
<br>
</blockquote>
<br>
Then this option did not reach the solver. You may have set a prefix.<br>
<br>
Run with -snes_max_it 1 -ksp_max_it 1 -snes_view to see what you are<br>
actually doing.<br>
<br>
</blockquote>
The key -ksp_max_it affects the iteration number<br>
for the (main) ksp object for SNES, but not the ksp<br>
object for PC.<br></blockquote><div><br></div><div>1) Why do you have a KSP object underneath your PC?</div><div><br></div><div>2) Since you do -sub_ksp_max_it 1 would be the default</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I observed yet another (related) problem. Even though<br>
I set KSP type to be GMRES, the type is GMRES only on<br>
the coarse level of the DMMG; the type changes to MG<br>
on all finer levels. How do I control KSP and PC on<br>
finer levels of DMMG?<br></blockquote><div><br></div><div>3) Don't use DMMG, it has been replaced with something much simpler in the latest release</div><div>    There you can give -mg_levels_ksp_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">
<br>
Regards,<br>
<br>
--Xuefeng Li, <a href="tel:%28504%29865-3340" value="+15048653340" target="_blank">(504)865-3340</a>(phone)<br>
  Like floating clouds, the heart rests easy<br>
  Like flowing water, the spirit stays free<br>
       <a href="http://www.loyno.edu/~li/home" target="_blank">http://www.loyno.edu/~li/home</a><br>
  New Orleans, Louisiana <a href="tel:%28504%29865-2051" value="+15048652051" target="_blank">(504)865-2051</a>(fax)<br>
<br>
</blockquote></div><br><br clear="all"><div><br></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>