On Thu, Mar 1, 2012 at 11:03 AM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@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">
<br>
MatCreateMPIAIJ(), MatCreateMPIBAIJ(), MatCreateMPISBAIJ() actually create Seq version of the matrices when run on one process.<br>
<br>
Meanwhile MatMPIXXXSetPreallocation() always do preallocation for MPI case.<br>
<br>
Shouldn't MatCreateMPIXXX() be MatCreateXXX()?<br></blockquote><div><br></div><div>I agree, and we already have MATAIJ so it matches a type.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also should we add MatXXXSetPreallocation() that calls both MatSeqXXXSetPreallocation() and MatMPIXXXSetPreallocation()?</blockquote><div><br></div><div>In fact, that exists: MatXAIJSetPreallocation(). I use it for DMComplex.</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"><br>
Barry<br>
<br>
</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>