# PCASMGetLocalSubdomains
Gets the local subdomains (for this processor only) for the additive Schwarz preconditioner, `PCASM`. 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCASMGetLocalSubdomains(PC pc, PetscInt *n, IS *is[], IS *is_local[])
```
Not Collective


## Input Parameter

- ***pc -*** the preconditioner context



## Output Parameters

- ***n -*** if requested, the number of subdomains for this processor (default value = 1)
- ***is -*** if requested, the index sets that define the subdomains for this processor
- ***is_local -*** if requested, the index sets that define the local part of the subdomains for this processor (can be NULL)



## Note
The `IS` numbering is in the parallel, global numbering of the vector.




## See Also
 `PCASM`, `PCASMSetTotalSubdomains()`, `PCASMSetOverlap()`, `PCASMGetSubKSP()`,
`PCASMCreateSubdomains2D()`, `PCASMSetLocalSubdomains()`, `PCASMGetLocalSubmatrices()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/asm/asm.c.html#PCASMGetLocalSubdomains">src/ksp/pc/impls/asm/asm.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/asm/asm.c)


[Index of all PC routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
