# DMDASetOffset
Sets the index offset of the DA. 
## Synopsis
```
#include "petscdmda.h"   
PetscErrorCode DMDASetOffset(DM da, PetscInt xo, PetscInt yo, PetscInt zo, PetscInt Mo, PetscInt No, PetscInt Po)
```
Collective on da


## Input Parameters

- ***da  -*** The `DMDA`
- ***xo  -*** The offset in the x direction
- ***yo  -*** The offset in the y direction
- ***zo  -*** The offset in the z direction





## Note
This is used primarily to overlap a computation on a local `DMDA` with that on a global `DMDA` without
changing boundary conditions or subdomain features that depend upon the global offsets.


## See Also
 `DM`, `DMDA`, `DMDAGetOffset()`, `DMDAVecGetArray()`

## Level
intermediate

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


---
[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)  
