[petsc-users] What function could be used to redistribute a matrix?

Fande Kong fdkong.jd at gmail.com
Wed Jul 29 23:54:42 CDT 2015


HI Jed,

Thanks for your reply. I am redistributing the matrix to construct a test
example only, not for the real problem.

Thanks,

Fande Kong,


On Wed, Jul 29, 2015 at 10:36 PM, Jed Brown <jed at jedbrown.org> wrote:

> Fande Kong <fdkong.jd at gmail.com> writes:
> > I want to redistribute a parallel matrix after it is partitioned by a
> > partitioner; for example, ParMETIS. Are there any functions for this
> > purpose?
>
> MatPermute or MatGetSubMatrix.
>
> Note that you usually want to partition a mesh, then assemble a matrix
> in a distribution that matches the mesh.  I'd say redistributing the
> matrix after partitioning is an algorithm smell for PDE-type problems.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150729/67fc7ada/attachment.html>


More information about the petsc-users mailing list