[petsc-users] Test convergence with non linear preconditioners

Adolfo Rodriguez adantra at gmail.com
Wed Aug 5 15:30:27 CDT 2020


I tred your suggestion

  SNESGetNPC(snes, &inner);
  SNESSetConvergenceTest(inner, YourFunc, ...);

and it is working as expected. I had not pieced together the fact that
"inner" is a "snes" object as well.



On Wed, Aug 5, 2020 at 3:11 PM Jed Brown <jed at jedbrown.org> wrote:

> Adolfo Rodriguez <adantra at gmail.com> writes:
> > Actually I can set the non-linear pc. My problem relates to the
> convergence
> > test. I have not found a way to set the tolerances for the inner problem,
> > are they hard coded?
> I suggested code to set a custom convergence test.  Nothing is
> hard-coded.  What have you done?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200805/2d08dee0/attachment-0001.html>

More information about the petsc-users mailing list