:orphan: # ISBlockGetIndices Gets the indices associated with each block in an `ISBLOCK` ## Synopsis ``` #include "petscis.h" PetscErrorCode ISBlockGetIndices(IS is, const PetscInt *idx[]) ``` Not Collective ## Input Parameter - ***is -*** the index set ## Output Parameter - ***idx -*** the integer indices, one for each block and count of block not indices ## Note Call `ISBlockRestoreIndices()` when you no longer need access to the indices ## See Also [](sec_scatter), `IS`, `ISBLOCK`, `ISGetIndices()`, `ISBlockRestoreIndices()`, `ISBlockSetIndices()`, `ISCreateBlock()` ## Level intermediate ## Location src/vec/is/is/impls/block/block.c ## Examples src/vec/is/is/tutorials/ex3.c
## Implementations ISBlockGetIndices_Block in src/vec/is/is/impls/block/block.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/is/impls/block/block.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)