# PCGASMGetUseDMSubdomains
Returns flag indicating whether to use `DMCreateDomainDecomposition()` to define the subdomains, whenever possible with `PCGASM` 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCGASMGetUseDMSubdomains(PC pc, PetscBool *flg)
```
Not Collective


## Input Parameter

- ***pc  -*** the preconditioner



## Output Parameter

- ***flg -*** boolean indicating whether to use subdomains defined by the `DM`





## See Also
 `PCGASM`, `PCGASMSetUseDMSubdomains()`, `PCGASMSetOverlap()`
`PCGASMCreateSubdomains2D()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/gasm/gasm.c.html#PCGASMGetUseDMSubdomains">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)  
