[petsc-users] Scattering a sequential vector
Barry Smith
bsmith at mcs.anl.gov
Thu Oct 9 16:59:15 CDT 2014
All processes except the 0th one create a sequential vector of size 0. All processes except 0 create two ISes of size 0. Process zero creates two ISes with the from locations (local in the sequential vector) and the to locations (global in the global vector) then all processes call VecScatterCreate() in the usual manner
Barry
On Oct 9, 2014, at 4:52 PM, Harshad Sahasrabudhe <hsahasra at purdue.edu> wrote:
> Hi,
>
> I need to scatter (distribute) a sequential vector on process 0 to all the processes according to a know set of global indices for each process. How can this be done using VecScatter?
>
> Thanks,
> Harshad
More information about the petsc-users
mailing list