[petsc-users] Nodes Communication - Petsc Vec
Matthew Knepley
knepley at gmail.com
Wed Feb 16 08:03:28 CST 2022
On Wed, Feb 16, 2022 at 8:55 AM Medane TCHAKOROM <
medane.tchakorom at univ-fcomte.fr> wrote:
> Hello,
>
> I want to pass a Petsc Vec from one node to another one. Is there any
> Petsc method for doing this
>
You likely want the VecScatter functionality. There is a discussion of this
in the manual:
https://petsc.org/main/docs/manual/vec/?highlight=vecscatter#sec-unstruct
Thanks,
Matt
> or should I use MPI_Irecv and MPI_Isend for non-blocking communication ?
>
> When using MPI_Isend, can i send a Petsc Vec, or should I get the array
> from it, and then send it ?
>
> Thanks
>
>
--
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
https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220216/111450f2/attachment.html>
More information about the petsc-users
mailing list