:orphan:
# DMDASetInterpolationType
Sets the type of interpolation that will be returned by `DMCreateInterpolation()`
## Synopsis
```
#include "petscdmda.h"
PetscErrorCode DMDASetInterpolationType(DM da, DMDAInterpolationType ctype)
```
Logically Collective
## 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
src/dm/impls/da/da.c
## Examples
src/ksp/ksp/tutorials/ex32.c
src/ksp/ksp/tutorials/ex34.c
---
[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](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)