# PCGetUseAmat
Gets a flag to indicate that when the preconditioner needs to apply (part of) the operator during the preconditioning process it applies the Amat provided to `TSSetRHSJacobian()`, `TSSetIJacobian()`, `SNESSetJacobian()`, `KSPSetOperators()` or `PCSetOperators()` not the Pmat. 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode PCGetUseAmat(PC pc, PetscBool *flg)
```
Logically Collective


## Input Parameter

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



## Output Parameter

- ***flg -*** `PETSC_TRUE` to use the Amat, `PETSC_FALSE` to use the Pmat (default is false)



## Note
For the common case in which the linear system matrix and the matrix used to construct the
preconditioner are identical, this routine is does nothing.




## See Also
 `PC`, `PCSetUseAmat()`, `PCBJACOBI`, `PGMG`, `PCFIELDSPLIT`, `PCCOMPOSITE`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/interface/precon.c.html#PCGetUseAmat">src/ksp/pc/interface/precon.c</A>


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