Non-local values

Matthew Knepley knepley at gmail.com
Wed Dec 10 12:36:20 CST 2008


On Wed, Dec 10, 2008 at 12:32 PM, Farshid Mossaiby <mossaiby at yahoo.com>wrote:

> Thanks for your reply.
>
> Of course this is a way, but I just need some of the values (probably few
> non-locals) on each process. I do not want to reproduce the same vector on
> all machines. Am I wrong?


VecScatter is a general mechanism. If you want to transfer 3 values, make a
vector length 3 and a VecScatter
from the global vector to that small vector.

  Matt


>
> Farshid Mossaiby
>
> --- On Wed, 12/10/08, Matthew Knepley <knepley at gmail.com> wrote:
>
> > From: Matthew Knepley <knepley at gmail.com>
> > Subject: Re: Non-local values
> > To: petsc-users at mcs.anl.gov
> > Date: Wednesday, December 10, 2008, 8:58 PM
> > On Wed, Dec 10, 2008 at 11:00 AM, Farshid Mossaiby
> > <mossaiby at yahoo.com>wrote:
> >
> > > Hi all,
> > >
> > > I know that this has been probably asked zilions of
> > times, just to make
> > > sure, what is the way to go if a process needs some
> > values from a vec/mat
> > > that is not local to that process? Is there any way?
> > For example each
> > > process provides an array of global indices, and in a
> > (of course collective)
> > > call, gets the related values from appropriate
> > processes?
> >
> >
> > VecScatter is the correct way to structure this
> > communication.
> >
> >   Matt
> >
> >
> > >
> > > Thank you,
> > > Farshid Mossaiby
> > >
> > --
> > 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
>
>
>
>
>


-- 
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/20081210/e0f26643/attachment.htm>


More information about the petsc-users mailing list