:orphan: # ISGetNonlocalIndices Retrieve an array of indices from remote processors in this communicator. ## Synopsis ``` #include "petscis.h" PetscErrorCode ISGetNonlocalIndices(IS is, const PetscInt *indices[]) ``` Collective ## Input Parameter - ***is -*** the index set ## Output Parameter - ***indices -*** indices with rank 0 indices first, and so on, omitting the current rank. Total number of indices is the difference total and local, obtained with `ISGetSize()` and `ISGetLocalSize()`, respectively. ## Notes Restore the indices using `ISRestoreNonlocalIndices()`. The same scalability considerations as those for `ISGetTotalIndices()` apply here. ## See Also `IS`, `ISGetTotalIndices()`, `ISRestoreNonlocalIndices()`, `ISGetSize()`, `ISGetLocalSize().` ## Level intermediate ## Location src/vec/is/is/interface/index.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/is/interface/index.c) [Index of all IS routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)