[petsc-users] Sub-indexing or SparseMult?

Matthew Knepley knepley at gmail.com
Mon Sep 26 11:33:47 CDT 2011


On Mon, Sep 26, 2011 at 4:30 PM, Hui Zhang <mike.hui.zhang at hotmail.com>wrote:

> Hi all,
>
> I just come into this question: if one wants a sub-vector with contiguous
> indices
> in the whole vector, surely, one can use getsubvec, but also one can setup
> a
> sparse boolean matrix for this aim; so which method is better, considering
> the whole vector is local or parallel?
>

http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Vec/VecScatterCreate.html

   Matt


> Thanks very much for any suggestions!
>
> Best wishes,
> Hui




-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110926/f33d0479/attachment.htm>


More information about the petsc-users mailing list