<div class="gmail_quote">On Mon, Nov 7, 2011 at 09:39, NAN ZHAO <span dir="ltr"><<a href="mailto:zhaonanavril@gmail.com">zhaonanavril@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>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?</div>
<div></div></blockquote></div><br><div>Just create two KSP objects, one for each system you want to solve.</div>