[petsc-users] SNES always ends at iteration 0

Mark Adams mfadams at lbl.gov
Sun Dec 12 18:11:34 CST 2021


The three "tol" values should be finite. It sounds like you set them to 0.
Don't do that and use the defaults to start.
The behavior with zero tolerances is not defined.
You can use -snes_monitor to print out the iterations.

On Sun, Dec 12, 2021 at 6:22 PM celestechevali at gmail.com <
celestechevali at gmail.com> wrote:

> Hello,
>
> I encountered a strange problem concerning the convergence of SNES.
>
> In my recent test runs I found that SNES always stops at iteration 0...
>
> At first I thought there may be an error with the tolerance setting, so I
> output the tolerances :
>
>
>
> *atol = 0.000000, rtol = 0.000000, stol = 0.000000, maxit = 50, maxf =
> 10000  Norm of error 760.491 Iterations 0*
>
> Which are exactly the default values that I always used. However, for the
> same tolerance settings, the SNES solver converges successfully if I
> decrease the number of degrees of freedom in my system...
>
> I wish to know if anyone has experienced the same type of problems or has
> an idea about what could possibly cause the problem...
>
> Thank you so much in advance.
>
> I appreciate any advice that you provide.
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20211212/3ccdf779/attachment.html>


More information about the petsc-users mailing list