:orphan: # PCFieldSplitSetOffDiagUseAmat set flag indicating whether to extract off-diagonal blocks from Amat (rather than Pmat) to build the sub-matrices associated with each split. Where `KSPSetOperators`(ksp,Amat,Pmat)) was used to supply the operators. ## Synopsis ``` #include "petscpc.h" PetscErrorCode PCFieldSplitSetOffDiagUseAmat(PC pc, PetscBool flg) ``` Logically Collective ## Input Parameters - ***pc -*** the preconditioner object - ***flg -*** boolean flag indicating whether or not to use Amat to extract the off-diagonal blocks from ## Options Database Key - ***-pc_fieldsplit_off_diag_use_amat -*** use the Amat to extract the off-diagonal blocks ## See Also [](sec_block_matrices), `PC`, `PCSetOperators()`, `KSPSetOperators()`, `PCFieldSplitGetOffDiagUseAmat()`, `PCFieldSplitSetDiagUseAmat()`, `PCFIELDSPLIT` ## 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)