<div dir="ltr"><div dir="ltr">On Wed, Feb 16, 2022 at 8:55 AM Medane TCHAKOROM <<a href="mailto:medane.tchakorom@univ-fcomte.fr">medane.tchakorom@univ-fcomte.fr</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I want to pass a Petsc Vec from one node to another one. Is there any <br>
Petsc method for doing this<br></blockquote><div><br></div><div>You likely want the VecScatter functionality. There is a discussion of this in the manual: <a href="https://petsc.org/main/docs/manual/vec/?highlight=vecscatter#sec-unstruct">https://petsc.org/main/docs/manual/vec/?highlight=vecscatter#sec-unstruct</a></div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
or should I use MPI_Irecv and MPI_Isend for non-blocking communication ?<br>
<br>
When using MPI_Isend, can i send a Petsc Vec, or should I get the array <br>
from it, and then send it ?<br>
<br>
Thanks<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>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</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>