Non-local values

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


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


More information about the petsc-users mailing list