# ISSetType
Builds a index set, for a particular `ISType` 
## Synopsis
```
#include "petscis.h"  
PetscErrorCode ISSetType(IS is, ISType method)
```
Collective


## Input Parameters

- ***is    -*** The index set object
- ***method -*** The name of the index set type



## Options Database Key

- ***-is_type <type> -*** Sets the index set type; use -help for a list of available types



## Notes
See "petsc/include/petscis.h" for available istor types (for instance, ISGENERAL, ISSTRIDE, or ISBLOCK).

Use `ISDuplicate()` to make a duplicate




## See Also
 [](sec_scatter), `IS`, `ISGENERAL`, `ISBLOCK`, `ISGetType()`, `ISCreate()`

## Level
intermediate

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/is/interface/isreg.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)  
