<div dir="ltr">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?<div><br></div><div>Thanks! </div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de">
<tr>
<td style="width:55px;padding-top:13px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
<td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link" target="_blank" style="color:#4453ea">www.avast.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 5, 2020 at 2:18 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">Adolfo Rodriguez <<a href="mailto:adantra@gmail.com" target="_blank">adantra@gmail.com</a>> writes:<br>
<br>
> I am trying to use non-linear preconditioners in a very similar way shown<br>
> in the paper "Composing scalable nonlinear solvers" by Peter Brune and<br>
> others.<br>
><br>
> My question is simple, actually. I have provided a test convergence<br>
> function, but it seems that the inner method does not take it into account<br>
> and follows the default convergence criteria. Is there a way to specify a<br>
> convergence function to the inner method?<br>
<br>
Are you saying that you did<br>
<br>
SNESGetNPC(snes, &inner);<br>
SNESSetConvergenceTest(inner, YourFunc, ...);<br>
<br>
and yet the function is not being called? Can you send output of -snes_view?<br>
</blockquote></div>