On Mon, Nov 7, 2011 at 5:28 PM, Alexander Grayver <span dir="ltr"><<a href="mailto:agrayver@gfz-potsdam.de">agrayver@gfz-potsdam.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<u></u>
<div bgcolor="#ffffff" text="#000000">
On 07.11.2011 17:47, Jed Brown wrote:
<blockquote type="cite">
<div class="gmail_quote">On Mon, Nov 7, 2011 at 09:39, NAN ZHAO <span dir="ltr"><<a href="mailto:zhaonanavril@gmail.com" target="_blank">zhaonanavril@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);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>
</blockquote>
</div>
<br>
<div>Just create two KSP objects, one for each system you want to
solve.</div>
</blockquote>
<br>
Sorry for disturbing, but I've also got similar question. How can
one specify individual options through command line for two
different KSPs?<br>
</div>
</blockquote></div><br><a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/KSP/KSPSetOptionsPrefix.html">http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/KSP/KSPSetOptionsPrefix.html</a><div>
<br></div><div> Matt<br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>
</div>