On Wed, Dec 10, 2008 at 12:32 PM, Farshid Mossaiby <span dir="ltr"><<a href="mailto:mossaiby@yahoo.com">mossaiby@yahoo.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks for your reply.<br>
<br>
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?</blockquote><div><br>VecScatter is a general mechanism. If you want to transfer 3 values, make a vector length 3 and a VecScatter<br>
from the global vector to that small vector.<br><br> Matt<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Farshid Mossaiby<br>
<br>
--- On Wed, 12/10/08, Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> wrote:<br>
<br>
> From: Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>><br>
> Subject: Re: Non-local values<br>
> To: <a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a><br>
> Date: Wednesday, December 10, 2008, 8:58 PM<br>
<div><div></div><div class="Wj3C7c">> On Wed, Dec 10, 2008 at 11:00 AM, Farshid Mossaiby<br>
> <<a href="mailto:mossaiby@yahoo.com">mossaiby@yahoo.com</a>>wrote:<br>
><br>
> > Hi all,<br>
> ><br>
> > I know that this has been probably asked zilions of<br>
> times, just to make<br>
> > sure, what is the way to go if a process needs some<br>
> values from a vec/mat<br>
> > that is not local to that process? Is there any way?<br>
> For example each<br>
> > process provides an array of global indices, and in a<br>
> (of course collective)<br>
> > call, gets the related values from appropriate<br>
> processes?<br>
><br>
><br>
> VecScatter is the correct way to structure this<br>
> communication.<br>
><br>
> Matt<br>
><br>
><br>
> ><br>
> > Thank you,<br>
> > Farshid Mossaiby<br>
> ><br>
> --<br>
> What most experimenters take for granted before they begin<br>
> their experiments<br>
> is infinitely more interesting than any results to which<br>
> their experiments<br>
> lead.<br>
> -- Norbert Wiener<br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>