[petsc-users] Equivalent of all_reduce for sparse matrices

Jed Brown jed at jedbrown.org
Thu May 8 22:47:32 CDT 2014


marco restelli <mrestelli at gmail.com> writes:
> Matt, thanks but this I don't understand. What I want is getting three
> arrays (i,j,coeff) with all the nonzero local coefficients, so that I
> can send them around with MPI.
>
> MatGetSubmatrices would give me some PETSc objects, which I can not
> pass to MPI, right?

I'm not sure you want this, but you can use MatGetRowIJ and similar to
access the representation you're asking for if you are dead set on
depending on a specific data format rather than using generic
interfaces.
-------------- 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/20140508/5767448c/attachment.pgp>


More information about the petsc-users mailing list