[petsc-users] Force SNES diverge

Matthew Knepley knepley at gmail.com
Mon Nov 5 10:17:31 CST 2018


On Mon, Nov 5, 2018 at 8:41 AM Karol Lewandowski via petsc-users <
petsc-users at mcs.anl.gov> wrote:

> Hi,
>
> I am solving a highly nonlinear problem using SNES solver. Under certain
> conditions during the iterations I already know that the step will diverge
> (in the next few iterations). Is there a clever way to tell SNES to diverge
> immediately so I can start a new step with reduced step size?
>

Set your own convergence test I think:
https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/SNES/SNESSetConvergenceTest.html

   Matt


> Thank you,
>
> Karol



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20181105/d607cabf/attachment.html>


More information about the petsc-users mailing list