On Tue, Sep 20, 2011 at 2:01 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@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="im"><div class="gmail_quote">On Tue, Sep 20, 2011 at 19:04, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@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>Why not write a wrapper preallocator that then calls all the known ones, for example<br>
<br>
MatPreallocateJed(.....)<br>
{<br>
ierr = MatPreallocateSeqAIJ(....)<br>
ierr = MatPreallocate(MPIAIJ(....)<br>
<br>
}</div></blockquote></div><br></div><div>And make this a public function, MatXAIJPreallocate(A,bs,dnz,dnnz,onz,onnz) ? That sounds fine to me.</div>
</blockquote></div><br>Yes, this is fine with me.<div><br></div><div> Matt<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>
</div>