Non-local values

Farshid Mossaiby mossaiby at yahoo.com
Wed Dec 10 12:32:07 CST 2008


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?

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


      




More information about the petsc-users mailing list