[petsc-users] How to change PC content during Iterations

Matthew Knepley knepley at gmail.com
Mon Oct 31 05:49:34 CDT 2011


On Mon, Oct 31, 2011 at 8:55 AM, behzad baghapour <
behzad.baghapour at gmail.com> wrote:

> Dear all,
>
> I'm using KSP iteration (for now) to solve my nonlinear problem and
> handling Newton Iterations manually. Here I want to change the PC method
> from some specified KSP iteration. How should I do it correctly in Petsc?
>

Call PCSetType() and then KSPSetOperators() again in your loop

   Matt


> Thanks, B.B.
>
> --
> ==================================
> Behzad Baghapour
> Ph.D. Candidate, Mechecanical Engineering
> University of Tehran, Tehran, Iran
> https://sites.google.com/site/behzadbaghapour
> Fax: 0098-21-88020741
> ==================================
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111031/4842aa8e/attachment.htm>


More information about the petsc-users mailing list