<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Sep 9, 2015 at 8:24 AM, Amal Sahai <span dir="ltr"><<a href="mailto:amalsahai@gmail.com" target="_blank">amalsahai@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">The problem still persists. The solver keeps iterating till the maximum number of iterations is reached despite absolute convergence criteria being met long before that.</p>
<p dir="ltr"></p></blockquote><div><br></div><div>Run with -ksp_view -ksp_monitor_true_residual -ksp_converged_reason</div><div><br></div><div>and send the output.</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Regards<br>
Amal</p>
<br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 8, 2015, 22:50 Barry Smith <<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Instead of setting rtol to default you should set it zero so it never gets triggered.<br>
<br>
> On Sep 8, 2015, at 10:38 PM, Amal Sahai <<a href="mailto:amalsahai@gmail.com" target="_blank">amalsahai@gmail.com</a>> wrote:<br>
><br>
> I have been setting the tolerance for a ksp solver using KSPSetTolerances. I would like to set my convergence criteria using only the absolute convergence parameter. I use the following command to set this up:<br>
><br>
> KSPSetTolerances( ksp, PETSC_DEFAULT, atol, PETSC_DEFAULT, maxits)<br>
><br>
> The problem is my ksp solver considers only the value of rtol while stopping the iterative solve. I tried changing the value of rtol to some other parameter instead of PETSC_DEFAULT (while making sure that atol is the more stringent condition requiring more iterations) but to no avail.<br>
><br>
> How can I fix this?<br>
><br>
> Regards<br>
> Amal<br>
<br>
</blockquote></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>