[petsc-users] partition an MPIAIJ matrix

Jed Brown jedbrown at mcs.anl.gov
Mon Feb 20 20:13:11 CST 2012

On Mon, Feb 20, 2012 at 20:09, recrusader <recrusader at gmail.com> wrote:

> I am taking a look at ex15 (
> http://www.mcs.anl.gov/petsc/petsc-current/src/mat/examples/tutorials/ex15.c.html
> ).
> I am very confused with this. In Section 3.5 Partitioning of the manual,
> one special Mat, that is 'adj', need to be established.
> However, in ex15, the common matrix is created. Does the matrix
> automatically contain the connection information?

Most (perhaps all?) of the partitioning implementations work with normal
AIJ matrices. Internally, they usually have to convert to the MPIAdj
because that is the interface to ParMETIS and others. Your code doesn't
have to think about it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120220/25c71697/attachment-0001.htm>

More information about the petsc-users mailing list