[petsc-users] Test convergence with non linear preconditioners
Adolfo Rodriguez
adantra at gmail.com
Wed Aug 5 15:30:27 CDT 2020
Jed,
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.
Thanks!
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
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