[petsc-users] partition an MPIAIJ matrix

recrusader recrusader at gmail.com
Mon Feb 20 16:27:51 CST 2012

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,

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

> On Mon, Feb 20, 2012 at 16:18, recrusader <recrusader at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120220/9a1a5cfe/attachment.htm>

More information about the petsc-users mailing list