[petsc-users] A question about KSP solver
behzad baghapour
behzad.baghapour at gmail.com
Tue Jan 3 09:37:33 CST 2012
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?
On Tue, Jan 3, 2012 at 6:58 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
> On Tue, Jan 3, 2012 at 09:21, behzad baghapour <behzad.baghapour at gmail.com
> > wrote:
>
>> How can I make KSP to ignore the convergence check after prescribed
>> number of linear iterations?
>
>
> -ksp_max_it N
>
> you will get back KSP_DIVERGED_ITS if you call KSPGetConvergedReason(),
> but you can decide that is okay.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120103/a1a2f5e1/attachment.htm>
More information about the petsc-users
mailing list