<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 10, 2019 at 2:25 PM Jed Brown <<a href="mailto:jed@jedbrown.org">jed@jedbrown.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">David Knezevic via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> writes:<br>
<br>
> I'm doing load stepping with SNES, where I do a SNES solve for each load<br>
> step. Ideally the convergence tolerances for each load step would be set<br>
> based on the norm of the load in the current step. As a result I would like<br>
> to be able to update the absolute and relative tolerances on a SNES.<br>
><br>
> I tried to call SNESSetTolerances at the beginning of each load step, but<br>
> it seems (based on the -snes_view output) that the tolerances do not get<br>
> updated. Is there a way to update the tolerances?<br>
<br>
Did you also have SNESSetFromOptions and specify tolerances on the<br>
command line?  SNESSetTolerances should be used unless it gets<br>
overwritten later by a process such as SNESSetFromOptions.<br></blockquote><div><br></div><div>Yes, you're right! Oops, I was overwriting the value... all good, sorry for the spam.</div><div><br>Best regards,<br>David</div><div><br></div><div> </div></div></div>