<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jan 20, 2014 at 3:58 PM, Dharmendar Reddy <span dir="ltr"><<a href="mailto:dharmareddy84@gmail.com" target="_blank">dharmareddy84@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello,<br>
        I want to set KSP Tolerances for an SNES solver for F(X) = 0<br>
<br>
as absTolKSP = maxval ( norm2F, absTolF_SNES)<br>
<br>
I am doing the above step based on Corollary 4 in the paper<br>
(<a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.10.8477&rep=rep1&type=pdf" target="_blank">http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.10.8477&rep=rep1&type=pdf</a>)<br></blockquote>
<div><br></div><div>It appears that Mike's paper was published before the reference everyone uses for this:</div><div><br></div><div><span style="color:rgb(0,0,0);font-family:Times;font-size:medium">S. C. Eisenstat and H. F. Walker, "Choosing the forcing terms in an inexact Newton method", SISC 17 (1), pp.16-32, 1996.</span><p style="color:rgb(0,0,0);font-family:Times;font-size:medium">
</p></div><div>We have it in PETSc:</div><div><br></div><div>  <a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/SNES/SNESKSPSetUseEW.html">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/SNES/SNESKSPSetUseEW.html</a></div>
<div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

Since norm2(F) chnages as the simulation progress, how to change the<br>
tolerence for the ksp ?<br>
<br>
I am trying via KSPConvergenceTest by doing the following calls inside<br>
the test funciton<br>
<br>
 call KSPSetTolerances<br>
 call KSPDefaultConverged<br>
<br>
now for the second call i need to pass KSPDefaultConvergedCtx , how do<br>
i do this from Fortran ?<br>
<br>
Thanks<br>
<span class=""><font color="#888888">Reddy<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>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>