<br><br><div class="gmail_quote">On Fri, Feb 10, 2012 at 4:02 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov">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 class="gmail_quote"><div class="im">On Fri, Feb 10, 2012 at 15:59, 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">


<div>As a separate matter, however, should preallocated, but not assembled matrices be able to be duplicated or copied?</div></blockquote><div><br></div></div><div>It doesn't even make semantic sense for Copy.</div></div>

</blockquote><div>Fine. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div><br>
</div><div>Duplicate only makes sense in that the sizes and types get set, but obviously the sparsity can't be set, so it doesn't have the (stated) semantics of Duplicate.</div></div></blockquote><div>I'm not sure I follow.  If a matrix has been created, its type has been set and it has been preallocated (e.g., MATMPIAIJ in ksp/ksp/examples/tutorials/ex2), it is not marked as assembled until after MatAssemblyEnd.  Does it still make sense to duplicate it?  In my opinion, it does.</div>

<div><br></div><div>Dmitry.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div class="im"><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>As currently implemented, MatDuplicate() and MatCopy() will refuse to operate on a matrix that is !assembled.</div></blockquote></div></div><br>
</blockquote></div><br>