VecGetValues.
Satish Balay
balay at mcs.anl.gov
Wed Mar 22 14:15:31 CST 2006
On Wed, 22 Mar 2006, billy at dem.uminho.pt wrote:
>
>
> VecGetValues(Vec x,PetscInt ni,const PetscInt ix[],PetscScalar y[])
>
> The documentation says ix is global index, isn't it the local index?
No - its the global index. Internally it subtracts 'rstat' - to get
the local offset [within the array used for internal storage].
You can check the code in VecGetValues_MPI() [src/vec/vec/impls/mpi/pdvec.c]
Satish
More information about the petsc-users
mailing list