[petsc-users] Problem with SNES

Jed Brown jedbrown at mcs.anl.gov
Mon Aug 29 11:09:41 CDT 2011


On Mon, Aug 29, 2011 at 10:43, Milan Mitrovic <milan.v.mitrovic at gmail.com>wrote:

> SNES Function norm 2.369969231195e-02
> Linear solve converged due to CONVERGED_RTOL iterations 0
> SNES Object:
>  type: ls
>    line search variant: SNESLineSearchCubic
>    alpha=0.0001, maxstep=1e+08, minlambda=1e-12
>  maximum iterations=50, maximum function evaluations=10000
>  tolerances: relative=1e-08, absolute=1e-50, solution=1e-08
>  total number of linear solver iterations=0
>  total number of function evaluations=1
>

I don'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

$ script milan-debug-session.log           # If you don't have this utility,
copy from the terminal
$ ./your_app -start_in_debugger noxterm

When the debugger comes up, enter at the (gdb) prompt

(gdb) break SNESSolve
(gdb) continue

It will stop again.

(gdb) print &snes->reason
$1 = (SNESConvergedReason *) 0x96d8c8
(gdb) watch *$1
(gdb) continue

You should see where snes->reason gets changed. When it does

(gdb) backtrace full
(gdb) continue

when the program exists

(gdb) quit
$ exit

And send us the log.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110829/92b9e931/attachment.htm>


More information about the petsc-users mailing list