[petsc-users] Sparse matrix partitioning in PETSc

Shri abhyshr at mcs.anl.gov
Fri Jan 13 12:06:52 CST 2012


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 process that gives you equal/nearly equal number of non zeros and then call MatSetSizes() followed by MatLoad(). ----- Original Message -----
> Hello,
> 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.
> How could I achieve that in PETSc?
> Thanks!
> -- Junchao Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120113/49aa5819/attachment.htm>


More information about the petsc-users mailing list