[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: VecGetValues.
On Wed, 22 Mar 2006, billy@xxxxxxxxxxxxx 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