:orphan:
# DMDASetNumLocalSubDomains
Sets the number of local subdomains created upon decomposition. 
## Synopsis
```
#include "petscdmda.h"   
PetscErrorCode DMDASetNumLocalSubDomains(DM da, PetscInt Nsub)
```
Not Collective


## Input Parameters

- ***da  -*** The `DMDA`
- ***Nsub -*** The number of local subdomains requested





## See Also
 `DM`, `DMDA`, `DMCreateDomainDecomposition()`, `DMDAGetNumLocalSubDomains()`

## Level
intermediate

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