<div class="gmail_quote">On Fri, Feb 10, 2012 at 15:49, Dmitry Karpeev <span dir="ltr"><<a href="mailto:karpeev@mcs.anl.gov">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">
<div>Yes, DMGetMatrix responds the same way wherever you call it from, but</div><div>what will happen if you call DMSetMatrixPreallocateOnly() and use that DM with a KSP? </div><div>It seems to me that once DMSetMatrixPreallocateOnly() has been called, that DM is only usable from SNES.</div>
</blockquote></div><br><div>Huh? DMGetMatrix() never puts useful values in the matrix, it's just the difference between specifying the number of nonzeros per row and placing those nonzeros where they belong.</div>