:orphan:
# DMDAGetOffset
Gets the index offset of the `DMDA`. 
## Synopsis
```
#include "petscdmda.h"   
PetscErrorCode DMDAGetOffset(DM da, PetscInt *xo, PetscInt *yo, PetscInt *zo, PetscInt *Mo, PetscInt *No, PetscInt *Po)
```
Not Collective


## Input Parameter

- ***da  -*** The `DMDA`



## Output Parameters

- ***xo  -*** The offset in the x direction
- ***yo  -*** The offset in the y direction
- ***zo  -*** The offset in the z direction
- ***Mo  -*** The global size in the x direction
- ***No  -*** The global size in the y direction
- ***Po  -*** The global size in the z direction





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

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/da/da.c.html#DMDAGetOffset">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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
