# DMDASetInterpolationType
Sets the type of interpolation that will be returned by `DMCreateInterpolation()` 
## Synopsis
```
#include "petscdmda.h"   
PetscErrorCode DMDASetInterpolationType(DM da, DMDAInterpolationType ctype)
```
Logically Collective on da


## Input Parameters

- ***da -*** initial distributed array
- ***ctype -*** `DMDA_Q1` and `DMDA_Q0` are currently the only supported forms





## Note
You should call this on the coarser of the two `DMDA` you pass to `DMCreateInterpolation()`


## See Also
 `DM`, `DMDA`, `DMDACreate1d()`, `DMDACreate2d()`, `DMDACreate3d()`, `DMDestroy()`, `DMDAInterpolationType`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/da/da.c.html#DMDASetInterpolationType">src/dm/impls/da/da.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex32.c.html">src/ksp/ksp/tutorials/ex32.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex34.c.html">src/ksp/ksp/tutorials/ex34.c.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/da/da.c)


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