<div class="gmail_quote">On Tue, Jan 3, 2012 at 09:50, behzad baghapour <span dir="ltr"><<a href="mailto:behzad.baghapour@gmail.com">behzad.baghapour@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks, Is it possible to handle the convergence check after each SNES iteration too? I know a little about SNESSetConvergenceTest() but I don't know how to use it?</blockquote></div><br><div>You implement the convegence test. There are examples and links to source code:</div>
<div><br></div><div><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/SNES/SNESSetConvergenceTest.html">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/SNES/SNESSetConvergenceTest.html</a></div>
<div><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/SNES/SNESDefaultConverged.html#SNESDefaultConverged">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/SNES/SNESDefaultConverged.html#SNESDefaultConverged</a></div>