Re: [petsc-users] Parallel vector with shared memory in Fortran

2017-06-06 Thread Barry Smith
> 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

Re: [petsc-users] Parallel vector with shared memory in Fortran

2017-06-05 Thread Matthew Knepley
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

Re: [petsc-users] Parallel vector with shared memory in Fortran

2017-06-05 Thread Francesco Migliorini
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

Re: [petsc-users] Parallel vector with shared memory in Fortran

2017-06-05 Thread Stefano Zampini
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

Re: [petsc-users] Parallel vector with shared memory in Fortran

2017-06-05 Thread Stefano Zampini
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

[petsc-users] Parallel vector with shared memory in Fortran

2017-06-05 Thread Francesco Migliorini
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