<div dir="ltr">On Thu, Feb 21, 2013 at 5:19 PM, Amneet Bhalla <span dir="ltr"><<a href="mailto:mail2amneet@gmail.com" target="_blank">mail2amneet@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Can you guys comment on what example case would be best to start off for shell <div>
operators with FieldSplit? The examples I am looking into all start with creating native </div><div>PETSc matrices and vectors. </div><div>
<br></div><div>If possible could you write down steps that would be needed in setting such system...</div><div><br></div><div>a) Create matrices using XXXX (?) b) Create vectors using YYYY ....<br></div></blockquote><div>
<br></div><div style>1) Solve your system with a standard KSP solver, like GMRES</div><div style><br></div><div style>2) Tell PCFIELDSPLIT about your fields using PCFieldSplitSetIS(), <a href="http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/PC/PCFieldSplitSetIS.html">http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/PC/PCFieldSplitSetIS.html</a></div>
<div style><br></div><div style>Now you are ready.</div><div style><br></div><div style> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><div class="gmail_quote">
On Thu, Feb 21, 2013 at 3:24 PM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div><div>On Thu, Feb 21, 2013 at 4:20 PM, Amneet Bhalla <span dir="ltr"><<a href="mailto:mail2amneet@gmail.com" target="_blank">mail2amneet@gmail.com</a>></span> wrote:<br></div></div><div class="gmail_extra">
<div class="gmail_quote"><div><div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br><div class="gmail_quote">On Thu, Feb 21, 2013 at 2:57 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
that you're happy with and that performs well with fieldsplit or custom preconditioning that will be amenable to your MatShells</blockquote></div><br>Is fieldsplit an alternative approach to MatNest and VecNest? The problem is that I am working on nonnative PETSc<div>
data; so I am not sure which recent methods would support shell approach. All I want is to use PETSc's algorithm </div><div>for solving multicomponent system of equation. I am not bothering about preconditioning yet, as I will be trying</div>
<div>a custom preconditioner down the road. </div></blockquote><div><br></div></div></div><div>MatNest is just an optimization matrix format. Get your stuff working with FieldSplit and then think about optimization.</div>
<div>
<br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><span><font color="#888888"><br>
<span><font color="#888888">-- <br>
<div>Amneet <br>
<br></div><div><br></div><div><br></div>
</font></span></font></span></div><span><font color="#888888">
</font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><span class=""><font color="#888888"><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
</font></span></font></span></div></div><span class=""><font color="#888888">
</font></span></blockquote></div><span class=""><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Amneet <br><br></div><div><br></div><div><br></div>
</font></span></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
</div></div>