# PCFieldSplitSetDiagUseAmat
set flag indicating whether to extract 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 PCFieldSplitSetDiagUseAmat(PC pc, PetscBool flg)
```
Logically Collective on pc


## Input Parameters

- ***pc  -*** the preconditioner object
- ***flg -*** boolean flag indicating whether or not to use Amat to extract the diagonal blocks from



## Options Database Keys

- ***-pc_fieldsplit_diag_use_amat -*** use the Amat to provide the diagonal blocks





## See Also
 `PCSetOperators()`, `KSPSetOperators()`, `PCFieldSplitGetDiagUseAmat()`, `PCFieldSplitSetOffDiagUseAmat()`, `PCFIELDSPLIT`

## Level
intermediate

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