:orphan:
# 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 `ISType` for available types (for instance, `ISGENERAL`, `ISSTRIDE`, or `ISBLOCK`).

Often convenience constructors such as `ISCreateGeneral()`, `ISCreateStride()` or  `ISCreateBlock()` can be used to construct the desired `IS` in one step

Use `ISDuplicate()` to make a duplicate


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

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