# DMDAConvertToCell
Convert (i,j,k) to local cell number 
## Synopsis
```
#include "petscdmda.h"   
PetscErrorCode DMDAConvertToCell(DM dm, MatStencil s, PetscInt *cell)
```
Not Collective


## Input Parameters

- ***da -*** the distributed array
- ***s -*** A `MatStencil` giving (i,j,k)



## Output Parameter

- ***cell -*** the local cell number





## See Also
  `DM`, `DMDA`

## Level
developer

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/da/dageometry.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)  
