[petsc-users] A question about KSP solver

behzad baghapour behzad.baghapour at gmail.com
Tue Jan 3 09:50:10 CST 2012


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?




On Tue, Jan 3, 2012 at 7:13 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> On Tue, Jan 3, 2012 at 09:37, behzad baghapour <behzad.baghapour at gmail.com
> > wrote:
>
>> 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:
>>
>>   Linear solve did not converge due to DIVERGED_ITS iterations 40
>> Nonlinear solve did not converge due to DIVERGED_LINEAR_SOLVE
>>
>> So how can I tell KSP in SNES to ignore the convergence check?
>>
>
> -snes_max_linear_solve_fail N
>
>
> http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/SNES/SNESSetMaxLinearSolveFailures.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120103/43e2364b/attachment.htm>


More information about the petsc-users mailing list