On Mon, Nov 5, 2018 at 8:41 AM Karol Lewandowski via petsc-users <
petsc-users@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/>

Reply via email to