:orphan: # PCFieldSplitSetDMSplits Flags whether `DMCreateFieldDecomposition()` should be used to define the splits in a `PCFIELDSPLIT`, whenever possible. ## Synopsis ``` #include "petscpc.h" PetscErrorCode PCFieldSplitSetDMSplits(PC pc, PetscBool flg) ``` Logically Collective ## Input Parameters - ***pc -*** the preconditioner context - ***flg -*** boolean indicating whether to use field splits defined by the `DM` ## Options Database Key - ***-pc_fieldsplit_dm_splits -*** use the field splits defined by the `DM` ## See Also [](sec_block_matrices), `PC`, `PCFIELDSPLIT`, `PCFieldSplitGetDMSplits()`, `PCFieldSplitSetFields()`, `PCFieldsplitSetIS()` ## Level Intermediate ## Location src/ksp/pc/impls/fieldsplit/fieldsplit.c --- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)