[petsc-dev] Using PETSc MatIS, how to matmult a global IS matrix and a global vector ?

Matthew Knepley knepley at gmail.com
Sun May 21 11:47:10 CDT 2017


On Sun, May 21, 2017 at 11:26 AM, Franck Houssen <franck.houssen at inria.fr>
wrote:

> Using PETSc MatIS, how to matmult a global IS matrix and a global vector ?
> Example is attached : I don't get what I expect that is a vector such that
> proc0 = [1, 2] and proc1 = [2, 1]
>

1) I think the global size of your matrix is wrong. You seem to want 3, not
4

2) Global vectors have a non-overlapping row partition. You might be
thinking of local vectors

  Thanks,

    Matt


> Franck
>



-- 
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

http://www.caam.rice.edu/~mk51/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170521/8dd5b41f/attachment.html>


More information about the petsc-dev mailing list