[petsc-users] Sparse matrix partitioning in PETSc

Jed Brown jedbrown at mcs.anl.gov
Sat Jan 14 11:41:35 CST 2012


On Sat, Jan 14, 2012 at 12:38, Junchao Zhang <junchao.zhang at gmail.com>wrote:

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

MatSetSizes() lets you specify local and/or global sizes. If you specify
both, it checks that they are compatible. The implementation uses

http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscSplitOwnership.html


If these are not suitable for your purposes, can you be more specific about
what you would like to do?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120114/709c6f98/attachment.htm>


More information about the petsc-users mailing list