Non-local values

Matthew Knepley knepley at
Wed Dec 10 11:28:26 CST 2008

On Wed, Dec 10, 2008 at 11:00 AM, Farshid Mossaiby <mossaiby at>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.


> 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
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the petsc-users mailing list