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@mcs.anl.gov> wrote:
On Mon, Feb 20, 2012 at 16:45, Recrusader <recrusader@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.