Dear Jed,<br><br>Thank you very much for your prompt reply.<br>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.<br>
<br>Thanks a lot,<br>Yujie<br><br><br><div class="gmail_quote">On Mon, Feb 20, 2012 at 4:20 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div><div class="h5">On Mon, Feb 20, 2012 at 16:18, recrusader <span dir="ltr"><<a href="mailto:recrusader@gmail.com" target="_blank">recrusader@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear PETSc Developers,<br><br>I have an MPIAIJ matrix, I want to use MatPartitioning functions to repartition the matrix.<br>Before doing this, I need to do MatCreateMPIAdj to generate an Adj Mat.<br>Could you give me some hints about how to get "i" and "j" (<a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatCreateMPIAdj.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatCreateMPIAdj.html</a>) from existing MPIAIJ matrix?</blockquote>
<div><br></div></div></div><div>MatConvert(), though some of the partitioning routines can do the conversion transparently on their own. </div></div>
</blockquote></div><br>