Does PETSc provide convenient functions to compute this layout( i.e.,# rows on each processor), or I have to do it myself?<div>I browsed PETSc document and did not find them.<br><br><div class="gmail_quote">On Fri, Jan 13, 2012 at 12:06 PM, Shri <span dir="ltr"><<a href="mailto:abhyshr@mcs.anl.gov" target="_blank">abhyshr@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><div style="font-size:12pt;font-family:Times New Roman">MatLoad() does not distribute the rows based on the number of non zeros. You'll need to first compute the number of rows on each<div>
process that gives you equal/nearly equal number of non zeros and then call MatSetSizes() followed by MatLoad().<br><div><br><hr><div><div><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px">
Hello,<div> When I use MatLoad() to load a sparse matrix, I want each process to have equal number of nonzeros, instead of equal number of rows.</div><div> How could I achieve that in PETSc?</div><div><br></div><div> Thanks!<br>
-- Junchao Zhang<br>
</div>
</blockquote><br></div></div></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Junchao Zhang<br>
</div>