# PCGASMGetSubdomains
Gets the subdomains supported on this MPI rank for the `PCGASM` additive Schwarz preconditioner. 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCGASMGetSubdomains(PC pc, PetscInt *n, IS *iis[], IS *ois[])
```
Not Collective


## Input Parameter

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



## Output Parameters

- ***n   -*** the number of subdomains for this MPI rank (default value = 1)
- ***iis -*** the index sets that define the inner subdomains (without overlap) supported on this rank (can be NULL)
- ***ois -*** the index sets that define the outer subdomains (with overlap) supported on this rank (can be NULL)



## Note
The user is responsible for destroying the `IS`s and freeing the returned arrays.
The `IS` numbering is in the parallel, global numbering of the vector.




## See Also
 `PCGASM`, `PCGASMSetOverlap()`, `PCGASMGetSubKSP()`, `PCGASMCreateSubdomains2D()`,
`PCGASMSetSubdomains()`, `PCGASMGetSubmatrices()`

## Level
advanced

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


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