Dear Jed,

Thank you very much for your prompt reply.
Actually, I want to reorder MPIAIJ matrix using Parmetis. The reordering function needs the same information with the partitioning, that is "i" and "j". I need to directly get them and then use the function in Parmetis.

Thanks a lot,
Yujie


On Mon, Feb 20, 2012 at 4:20 PM, Jed Brown <jedbrown@mcs.anl.gov> wrote:
On Mon, Feb 20, 2012 at 16:18, recrusader <recrusader@gmail.com> wrote:
Dear PETSc Developers,

I have an MPIAIJ matrix, I want to use MatPartitioning functions to repartition the matrix.
Before doing this, I need to do MatCreateMPIAdj to generate an Adj Mat.
Could you give me some hints about how to get "i" and "j" (http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatCreateMPIAdj.html) from existing MPIAIJ matrix?

MatConvert(), though some of the partitioning routines can do the conversion transparently on their own.