<div class="gmail_quote">On Mon, Aug 29, 2011 at 10:43, Milan Mitrovic <span dir="ltr">&lt;<a href="mailto:milan.v.mitrovic@gmail.com">milan.v.mitrovic@gmail.com</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=":2fl">SNES Function norm 2.369969231195e-02<br>
<div class="im">Linear solve converged due to CONVERGED_RTOL iterations 0<br>
</div>SNES Object:<br>
  type: ls<br>
    line search variant: SNESLineSearchCubic<br>
    alpha=0.0001, maxstep=1e+08, minlambda=1e-12<br>
  maximum iterations=50, maximum function evaluations=10000<br>
  tolerances: relative=1e-08, absolute=1e-50, solution=1e-08<br>
  total number of linear solver iterations=0<br>
  total number of function evaluations=1</div></blockquote></div><br><div>I don&#39;t know how CONVERGED_RTOL with 0 iterations should be able to happen. Do you have a custom convergence test? To help me out, run</div><div>
<br></div><div>$ script milan-debug-session.log           # If you don&#39;t have this utility, copy from the terminal</div><div>$ ./your_app -start_in_debugger noxterm</div><div><br></div><div>When the debugger comes up, enter at the (gdb) prompt</div>
<div><br></div><div>(gdb) break SNESSolve</div><div>(gdb) continue</div><div><br></div><div>It will stop again.</div><div><br></div><div>(gdb) print &amp;snes-&gt;reason</div><div>$1 = (SNESConvergedReason *) 0x96d8c8</div>
<div>(gdb) watch *$1</div><div>(gdb) continue</div><div><br></div><div>You should see where snes-&gt;reason gets changed. When it does</div><div><br></div><div>(gdb) backtrace full</div><div>(gdb) continue</div><div><br></div>
<div>when the program exists</div><div><br></div><div>(gdb) quit</div><div>$ exit</div><div><br></div><div>And send us the log.</div>