[petsc-users] Sparse matrix partitioning in PETSc

Junchao Zhang junchao.zhang at gmail.com
Sat Jan 14 11:38:00 CST 2012


Does PETSc provide convenient functions to compute this layout( i.e.,# rows
on each processor), or I have to do it myself?
I browsed PETSc document and did not find them.

On Fri, Jan 13, 2012 at 12:06 PM, Shri <abhyshr at mcs.anl.gov> wrote:

> 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().
>
> ------------------------------
>
> 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
>
>
>


-- 
Junchao Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120114/ced1eb9e/attachment.htm>


More information about the petsc-users mailing list