[petsc-users] about linear solver convergence
Jed Brown
jedbrown at mcs.anl.gov
Wed Oct 12 09:58:35 CDT 2011
On Wed, Oct 12, 2011 at 09:56, behzad baghapour
<behzad.baghapour at gmail.com>wrote:
> I found that I should set up KSP in each Newton iteration ( if I don't want
> to use SNES I think!).
>
You probably should use SNES. :-)
> Then KSP linear solver converged and my problem is solved.
> By the way, Is it correct to re-setup KSP in each Newton iteration or I can
> use a better way?
>
You can just call KSPSetOperators() before KSPSolve() in each Newton
iteration.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111012/bf02a357/attachment.htm>
More information about the petsc-users
mailing list