[petsc-users] Is it possible to update SNES tolerances?

David Knezevic david.knezevic at akselos.com
Mon Jun 10 13:28:20 CDT 2019


On Mon, Jun 10, 2019 at 2:25 PM Jed Brown <jed at jedbrown.org> wrote:

> David Knezevic via petsc-users <petsc-users at mcs.anl.gov> writes:
>
> > I'm doing load stepping with SNES, where I do a SNES solve for each load
> > step. Ideally the convergence tolerances for each load step would be set
> > based on the norm of the load in the current step. As a result I would
> like
> > to be able to update the absolute and relative tolerances on a SNES.
> >
> > I tried to call SNESSetTolerances at the beginning of each load step, but
> > it seems (based on the -snes_view output) that the tolerances do not get
> > updated. Is there a way to update the tolerances?
>
> Did you also have SNESSetFromOptions and specify tolerances on the
> command line?  SNESSetTolerances should be used unless it gets
> overwritten later by a process such as SNESSetFromOptions.
>

Yes, you're right! Oops, I was overwriting the value... all good, sorry for
the spam.

Best regards,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190610/7852d9a2/attachment.html>


More information about the petsc-users mailing list