# DMDASetOwnershipRanges
Sets the number of nodes in each direction on each process 
## Synopsis
```
#include "petscdmda.h"   
PetscErrorCode DMDASetOwnershipRanges(DM da, const PetscInt lx[], const PetscInt ly[], const PetscInt lz[])
```
Logically Collective on da


## Input Parameters

- ***da -*** The `DMDA`
- ***lx -*** array containing number of nodes in the X direction on each process, or NULL. If non-null, must be of length da->m
- ***ly -*** array containing number of nodes in the Y direction on each process, or NULL. If non-null, must be of length da->n
- ***lz -*** array containing number of nodes in the Z direction on each process, or NULL. If non-null, must be of length da->p.




Note: these numbers are NOT multiplied by the number of dof per node.


## See Also
 `DM`, `DMDA`, `DMDACreate()`, `DMDestroy()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/da/da.c.html#DMDASetOwnershipRanges">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)  
