[petsc-users] about linear solver convergence

behzad baghapour behzad.baghapour at gmail.com
Wed Oct 12 10:04:00 CDT 2011


Thanks.

On Wed, Oct 12, 2011 at 6:28 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> 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.
>



-- 
==================================
Behzad Baghapour
Ph.D. Candidate, Mechecanical Engineering
University of Tehran, Tehran, Iran
https://sites.google.com/site/behzadbaghapour
Fax: 0098-21-88020741
==================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111012/2e70ac7f/attachment-0001.htm>


More information about the petsc-users mailing list