<div class="gmail_quote">On Fri, May 13, 2011 at 06:51, Tian(ICT) <span dir="ltr">&lt;<a href="mailto:rongtian@ncic.ac.cn">rongtian@ncic.ac.cn</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":2jg">What does this output really mean?<br>
Why does a converged Newton iteration still lead to a diverged SNES solve?<br>
<br></div></blockquote><div><br></div><div>Newton did not converge.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id=":2jg"><br>
STEP 0 (Newton iterations: 3)<br>
<br>
diverged reason: -6<br></div></blockquote></div><br><div>You should consider using</div><div><br></div><div>PetscPrintf(comm,&quot;%s\n&quot;,SNESConvergedReasons[reason]);</div><div><br></div><div>instead of printing the numeric value. Or just run with -snes_converged_reason to have PETSc print it for you before SNESSolve returns. The reason is SNES_DIVERGED_LINE_SEARCH</div>