[petsc-users] Use two KSP solver in the same code.

Jed Brown jedbrown at mcs.anl.gov
Mon Nov 7 10:47:35 CST 2011


On Mon, Nov 7, 2011 at 09:39, NAN ZHAO <zhaonanavril at gmail.com> wrote:

> I want to solve a coupled system and prepare to solve the two system in
> certain order in one code. I need to use the KSP solver twice, Does anyone
> know a good example in the example file. Do I need to create two Petsc
> object in a c++ code?
>

Just create two KSP objects, one for each system you want to solve.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111107/89c94521/attachment.htm>


More information about the petsc-users mailing list