On Fri, Feb 10, 2012 at 3:58 PM, Dmitry Karpeev <span dir="ltr"><<a href="mailto:karpeev@mcs.anl.gov">karpeev@mcs.anl.gov</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 class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Fri, Feb 10, 2012 at 3:53 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div class="gmail_quote">On Fri, Feb 10, 2012 at 15:50, Dmitry Karpeev <span dir="ltr"><<a href="mailto:karpeev@mcs.anl.gov" target="_blank">karpeev@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



Why not simply allow DM to return two matrices as SNES and KSP would want anyway? </blockquote></div><br></div><div>How do you specify the reduced stencil to use for the preconditioning matrix? Maybe it wouldn't add too many more if statements to the current code which is already polluted with them.</div>



</blockquote></div><br></div></div><div>It seems to me that the sparsity pattern (and even the type of the matrices) is up to the particular DM type,</div><div>so it is, in principle, opaque.  DMDA can control it by manipulating stencil width or widths, while FEM-oriented DM </div>


<div>types (e.g., libMesh) could control it via the element type, etc. The generic DM interface doesn't have a way to specify </div><div>the sparsity pattern. As it should be, in my opinion.</div></blockquote><div><br>
</div><div>This makes no sense to me unless the two matrices being returned have different sparsity patterns, and we have no</div><div>good way for specifying that, or even a good rationale for doing it.</div><div><br></div>
<div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888"><div>
Dmitry.</div>
</font></span></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>