Panruo Wu <armiuswu at gmail.com> writes: > Hello, > > I have a question about the matrix distribution in Petsc. > Can I define the distribution pattern as the output > of graph partition software like METIS? Pointers > to documentation/code about matrix distribution in Petsc > would be very helpful.
http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatCreateMPIAdj.html http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/MatOrderings/MatPartitioningCreate.html After applying the partitioning, relabel your mesh (or whatever is the source of your problem), migrate that data, and create a new matrix using the new distribution.
