> On Jun 5, 2017, at 11:20 AM, Francesco Migliorini
> wrote:
>
> Dear Stefano,
> Thank you for your answer. I tried to use VecScatterCreateToAll as you
> suggested but it does not work since the first processor can only view its
> part of the vector. Here's how I managed the code:
>
> Vec
On Mon, Jun 5, 2017 at 11:20 AM, Francesco Migliorini <
francescomigliorin...@gmail.com> wrote:
> Dear Stefano,
> Thank you for your answer. I tried to use VecScatterCreateToAll as you
> suggested but it does not work since the first processor can only view its
> part of the vector.
>
Then there
Dear Stefano,
Thank you for your answer. I tried to use VecScatterCreateToAll as you
suggested but it does not work since the first processor can only view its
part of the vector. Here's how I managed the code:
VecfePS
VecScatterScatter
(...)
call VecScatterCreateToAll(feP,Scatter,fePS,per
Sorry, bad copy and paste
http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/VecScatterCreateToAll.html
Il 05 Giu 2017 4:43 PM, "Stefano Zampini" ha
scritto:
> petsc-current/docs/manualpages/Vec/VecScatterCreateToAll.html
>
> Il 05 Giu 2017 4:12 PM, "Francesco Migliorini" <
> franc
petsc-current/docs/manualpages/Vec/VecScatterCreateToAll.html
Il 05 Giu 2017 4:12 PM, "Francesco Migliorini" <
francescomigliorin...@gmail.com> ha scritto:
> Hello there!
>
> I am working with an MPI code in which I should create a petsc vector such
> that all the processes can access to all its
Hello there!
I am working with an MPI code in which I should create a petsc vector such
that all the processes can access to all its entries. So, I tried with
VecCreateShared but it does not work with my machine. Then I tried
VecCreateMPI but it seems to me that it does not change anything from th