[petsc-users] Access to submatrix owned by an other processor

Matthew Knepley knepley at gmail.com
Mon Sep 25 05:15:31 CDT 2017


On Mon, Sep 25, 2017 at 4:26 AM, Benedusi Pietro <pietro.benedusi at usi.ch>
wrote:

> Dear all,
>
> there is a way to access an arbitrary block of a parallel matrix? It
> should work also in the case where the block is owned by an other processor.
>
> I have seen that you can use MatCreateRedundantMatrix() to copy the entire
> matrix in a processor, but this solution is not very efficient if I just
> need a (small) block of it.
> I have also tried to use MatGetSubMatrix() but does not seem to work.
>

Why does MatGetSubMatrix() not work?

  Thanks,

    Matt


> Thank you very much for any help,
> Pietro
>
-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.caam.rice.edu/~mk51/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170925/17cd7966/attachment.html>


More information about the petsc-users mailing list