<div class="gmail_quote">On Fri, Feb 10, 2012 at 16:06, 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>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>
</blockquote></div><br><div>MatDuplicateOption specifies what to copy, but all cases are supposed to provide a correct nonzero pattern.</div>