# DMSetVI
Marks a DM as associated with a VI problem. This causes the interpolation/restriction operators to be restricted to only those variables NOT associated with active constraints. 
## Synopsis
```
#include "petscsnes.h" 
PetscErrorCode DMSetVI(DM dm, IS inactive)
```
Logically Collective


## Input Parameters

- ***dm -*** the `DM` object
- ***inactive -*** an `IS` indicating which points are currently not active





## See Also
 `SNESVINEWTONRSLS`, `SNESVIGetInactiveSet()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/impls/vi/rs/virs.c.html#DMSetVI">src/snes/impls/vi/rs/virs.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/impls/vi/rs/virs.c)


[Index of all SNES routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
