# PCFieldSplitGetDMSplits
Returns flag indicating whether `DMCreateFieldDecomposition()` should be used to define the splits in a `PCFIELDSPLIT`, whenever possible. 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCFieldSplitGetDMSplits(PC pc, PetscBool *flg)
```
Logically Collective


## Input Parameter

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



## Output Parameter

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





## See Also
 [](sec_block_matrices), `PC`, `PCFIELDSPLIT`, `PCFieldSplitSetDMSplits()`, `PCFieldSplitSetFields()`, `PCFieldsplitSetIS()`

## Level
Intermediate

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


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