# ISSetIdentity
Informs the index set that it is an identity. 
## Synopsis
```
#include "petscis.h" 
PetscErrorCode ISSetIdentity(IS is)
```
Logically Collective


## Input Parameter

- ***is -*** the index set




Note: The IS will be considered the identity permanently, even if indices have been changes (for example, with
ISGeneralSetIndices()).  It's a good idea to only set this property if the IS will not change in the future.
To clear this property, use ISClearInfoCache().


## See Also
 `ISIdentity()`, `ISSetInfo()`, `ISClearInfoCache()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/is/interface/index.c.html#ISSetIdentity">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)  
