[petsc-users] partition an MPIAIJ matrix

recrusader recrusader at gmail.com
Mon Feb 20 20:09:56 CST 2012


Dear Jed,

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?

Thanks a lot,
Yujie

On Mon, Feb 20, 2012 at 4:45 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> On Mon, Feb 20, 2012 at 16:45, Recrusader <recrusader at gmail.com> wrote:
>
>> It is not only redistribute the matrix. I want to get the reorder
>> information and use matpermute to reorder the matrix.
>
>
> MatConvert().
>
> ISPartitioningToNumbering() might also be useful for you.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120220/c3eb24be/attachment.htm>


More information about the petsc-users mailing list