<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div> Adolfo,<div class=""><br class=""></div><div class=""> You can also just change the tolerances for the inner solve using the options data base and the prefix for the inner solve. </div><div class=""><br class=""></div><div class=""> When you run with -snes_view it will show the prefix for each of the (nested) solvers. You can also run with -help to get all the possible options for the inner solvers.</div><div class=""><br class=""></div><div class=""> In this case I think the prefix is npc so you can set tolerances with -npc_snes_rtol <rtol> -npc_ksp_rtol <rtol> etc. From the program you can use SNESGetNPC() and then call SNESSetXXX() to set options, for the linear solver (if there is one) call SNESGetKSP() on the npc and then set options on that KSP.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""> Barry</div><div class=""><br class=""></div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 5, 2020, at 3:30 PM, Adolfo Rodriguez <<a href="mailto:adantra@gmail.com" class="">adantra@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Jed, <div class=""><br class=""></div><div class="">I tred your suggestion </div><div class=""><br class=""></div><div class=""> SNESGetNPC(snes, &inner);<br class=""> SNESSetConvergenceTest(inner, YourFunc, ...); </div><div class=""><br class=""></div><div class="">and it is working as expected. I had not pieced together the fact that "inner" is a "snes" object as well.</div><div class=""><br class=""></div><div class="">Thanks!</div><div class=""><br class=""></div><div class=""> <br class=""></div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" class=""><br class="">
<table style="border-top:1px solid #d3d4de" class="">
<tbody class=""><tr class="">
<td style="width:55px;padding-top:13px" class=""><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" class=""><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;" class=""></a></td>
<td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px" class="">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" class="">www.avast.com</a>
</td>
</tr>
</tbody></table><a href="x-msg://85/#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1" class=""></a></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 5, 2020 at 3:11 PM Jed Brown <<a href="mailto:jed@jedbrown.org" class="">jed@jedbrown.org</a>> wrote:<br class=""></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" class="">adantra@gmail.com</a>> writes:<br class="">
<br class="">
> Actually I can set the non-linear pc. My problem relates to the convergence<br class="">
> test. I have not found a way to set the tolerances for the inner problem,<br class="">
> are they hard coded?<br class="">
<br class="">
I suggested code to set a custom convergence test. Nothing is hard-coded. What have you done?<br class="">
</blockquote></div>
</div></blockquote></div><br class=""></div></body></html>