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

Jed Brown jed at jedbrown.org
Wed Jul 29 23:36:49 CDT 2015

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 --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150729/e38be87f/attachment.pgp>

More information about the petsc-users mailing list