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?<br><br><br><br><br><div class="gmail_quote">On Tue, Jan 3, 2012 at 7:13 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><div class="gmail_quote">On Tue, Jan 3, 2012 at 09:37, behzad baghapour <span dir="ltr"><<a href="mailto:behzad.baghapour@gmail.com" target="_blank">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">
<div>Thanks, I am using SNES and I thought KSPGetConvergedReason() may automaticly checked after each Newton iteration and then the solution is stopped with this message:<br><br> Linear solve did not converge due to DIVERGED_ITS iterations 40<br>
Nonlinear solve did not converge due to DIVERGED_LINEAR_SOLVE<br><br>So how can I tell KSP in SNES to ignore the convergence check?<div><div></div></div></div></blockquote></div><div><br></div></div><div>-snes_max_linear_solve_fail N</div>
<br><div><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/SNES/SNESSetMaxLinearSolveFailures.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/SNES/SNESSetMaxLinearSolveFailures.html</a></div>
</blockquote></div><br>