[petsc-users] how to partition a matrix?

Matthew Knepley knepley at gmail.com
Wed Nov 20 17:59:42 CST 2013


On Wed, Nov 20, 2013 at 5:26 PM, aymeric aymeric
<sickofcowboys at hotmail.com>wrote:

> Sorry to ask something tat sounds so trivial, but I can't find help in the
> manual or the examples.
> In the context of FE (unstructured grid), I am trying to partition a
> matrix; I am able to follow the example given in section 2.5 of the manual.
> But what I get is an IS representing the processor for each element... and
> what am I supposed to do with that? Assuming that I could distribute the
> mesh, then how am I supposed to create the matrix associated with the
> partition? I feel like I am missing something obvious, cause it can't be
> complicated...
>

All standard mesh partitioners give the same output, partition number of
each row (vertex). You can use this in
MatPermute() for instance, but that is generally expensive. It might help
to explain what you want to do.

   Matt


> Thank you for your help
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131120/74a9facb/attachment.html>


More information about the petsc-users mailing list