On Sat, Dec 24, 2011 at 8:11 AM, TAY wee-beng <span dir="ltr"><<a href="mailto:zonexo@gmail.com">zonexo@gmail.com</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">
<div bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
No I'm not. Will using ptype2 or ksptype2 work?<br></div></blockquote><div><br></div><div>I think you should setup</div><div><br></div><div> <a href="http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/PC/PCFIELDSPLIT.html">http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/PC/PCFIELDSPLIT.html</a></div>
<div><br></div><div>probably using</div><div><br></div><div> <a href="http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/PC/PCFieldSplitSetIS.html#PCFieldSplitSetIS">http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/PC/PCFieldSplitSetIS.html#PCFieldSplitSetIS</a></div>
<div><br></div><div> Matt </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
<pre cols="72">Yours sincerely,
TAY wee-beng</pre>
<br>
On 24/12/2011 3:07 PM, Matthew Knepley wrote:
<blockquote type="cite">On Sat, Dec 24, 2011 at 7:42 AM, TAY wee-beng <span dir="ltr"><<a href="mailto:zonexo@gmail.com" target="_blank">zonexo@gmail.com</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">
Hi,<br>
<br>
I am solving 4 linear equations in my cfd code. I have
declared them as:<br>
<br>
KSP ksp,ksp_semi_x,ksp_semi_y,ksp_semi_z<br>
<br>
PC pc,pc_semi_x,pc_semi_y,pc_semi_z<br>
<br>
PCType ptype<br>
<br>
KSPType ksptype<br>
<br>
However, I only want to solve the 1st eqn via hypre (thru
command prompt), and the others via KSPBCGS.<br>
<br>
I now add:<br>
<br>
ksp_type richardson -pc_type hypre -pc_type_hypre boomeramg<br>
<br>
Are all the eqns now solved using hypre?<br>
<br>
How should I specify in the command prompt?</blockquote>
<div><br>
</div>
<div><br>
</div>
<div>Are you using DMDA? If so, its easy to do PCFIELDSPLIT from
the command line.</div>
<div><br>
</div>
<div> Matt </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span><font color="#888888"><br><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Yours sincerely,<br>
<br>
TAY wee-beng<br>
<br>
</font></span></font></span></blockquote><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
<br>
<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>
</font></span></blockquote>
</div>
</blockquote></div><br><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>