[petsc-users] How can I convert parall matrix to MATSEQDENSE

Jed Brown jedbrown at mcs.anl.gov
Sun Aug 18 08:12:51 CDT 2013


Cong Li <solvercorleone at gmail.com> writes:

> Hi, all
>
> Could someone tell me how I can convert a parallel MATDENSE (or MATMPIAIJ)
> matrix to a MATSEQDENSE matrix?

Get the array and use MPI_Gather.  With MATMPIAIJ, you almost certainly
should not compute an explicit inverse.

> I need this converted sequential matrix for direct solver to get its
> inverse matrix.

You can do that with Elemental without needing to serialize the matrix
inversion.  Also, why do you need an explicit inverse?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130818/963cfa70/attachment.pgp>


More information about the petsc-users mailing list