[petsc-users] SNES solver

Jed Brown jed at 59A2.org
Fri May 13 03:37:20 CDT 2011


On Fri, May 13, 2011 at 06:51, Tian(ICT) <rongtian at ncic.ac.cn> wrote:

> What does this output really mean?
> Why does a converged Newton iteration still lead to a diverged SNES solve?
>
>
Newton did not converge.


>
> STEP 0 (Newton iterations: 3)
>
> diverged reason: -6
>

You should consider using

PetscPrintf(comm,"%s\n",SNESConvergedReasons[reason]);

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110513/7dfae799/attachment.htm>


More information about the petsc-users mailing list