marco restelli <[email protected]> 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.
pgpuiLLXqbeEQ.pgp
Description: PGP signature
