<div dir="ltr">Thanks Jed!<div><br></div><div style>I understand that MatCreateMPIAdj takes adjacency information</div><div style>and partition the matrix for me; what if I don't want it to partition</div><div style>
for me, that I already have a particular partitioning?</div><div style><br></div><div style>I guess my question is, how do I tell Petsc to use my own partitioning?</div><div style><br></div><div style>Thanks,</div><div style>
Panruo</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Apr 28, 2013 at 5:26 AM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">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="HOEnZb"><div class="h5">Panruo Wu <<a href="mailto:armiuswu@gmail.com">armiuswu@gmail.com</a>> writes:<br>
<br>
> Hello,<br>
><br>
> I have a question about the matrix distribution in Petsc.<br>
> Can I define the distribution pattern as the output<br>
> of graph partition software like METIS? Pointers<br>
> to documentation/code about matrix distribution in Petsc<br>
> would be very helpful.<br>
<br>
</div></div><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><br>
<a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/MatOrderings/MatPartitioningCreate.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/MatOrderings/MatPartitioningCreate.html</a><br>
<br>
After applying the partitioning, relabel your mesh (or whatever is the<br>
source of your problem), migrate that data, and create a new matrix<br>
using the new distribution.<br>
</blockquote></div><br></div>