On Fri, Jun 15, 2012 at 4:59 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 4:22 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">
On Fri, 15 Jun 2012, Matthew Knepley wrote:<br>
<br>
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>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Are there any database keys to control the number of<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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>
<br>
</blockquote>
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>
The key -ksp_max_it affects the iteration number<br>
</blockquote>
for the (main) ksp object for SNES, but not the ksp<br>
object for PC.<br>
<br>
</blockquote>
<br>
1) Why do you have a KSP object underneath your PC?<br>
<br>
</blockquote>
I should've made myself clearer in the last email. I get<br>
ksp through DMMGGetKSP(), and get pc through KSPGetPC().<br>
I then KSPSetType() to gmres; PCSetType() to pcasm. That's<br>
all I've done in the program.<br>
<br>
After using -snes_view, the output shows the following.<br>
KSP Object:<br>
type: gmres<br>
GMRES: restart=30, using Classical (unmodified) Gram-Schmidt Orthogonalization with no iterative refinement<br>
GMRES: happy breakdown tolerance 1e-30<br>
maximum iterations=2222, initial guess is zero<br>
tolerances: relative=1e-08, absolute=1e-50, divergence=10000<br>
left preconditioning<br>
using PRECONDITIONED norm type for convergence test<br>
PC Object:<br>
type: asm<br>
Additive Schwarz: total subdomain blocks = 1, amount of overlap = 1<br>
Additive Schwarz: restriction/interpolation type - RESTRICT<br>
Local solve is same for all blocks, in the following KSP and PC objects:<br>
KSP Object:(sub_)<br></blockquote><div> ^^^^^^^^^^^^^^^^^^</div><div><br></div><div>It is telling you right here what the name is, -sub_ksp_max_it 1</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">
type: preonly<br>
maximum iterations=10000, initial guess is zero<br>
<br>
Iteration remains 10,000.<br>
<br>
<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>