# 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
 `ISGetTotalIndices()`, `ISRestoreNonlocalIndices()`, `ISGetSize()`, `ISGetLocalSize().`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/is/interface/index.c.html#ISGetNonlocalIndices">src/vec/is/is/interface/index.c</A>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
