<div class="gmail_quote">On Mon, Feb 20, 2012 at 16:18, recrusader <span dir="ltr"><<a href="mailto:recrusader@gmail.com">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>MatConvert(), though some of the partitioning routines can do the conversion transparently on their own. </div></div>