# PCGetOperatorsSet
Determines if the matrix associated with the linear system and possibly a different one associated with the preconditioner have been set in the `PC`. 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode PCGetOperatorsSet(PC pc, PetscBool *mat, PetscBool *pmat)
```
Not collective, though the results on all processes should be the same


## Input Parameter

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



## Output Parameters

- ***mat -*** the matrix associated with the linear system was set
- ***pmat -*** matrix associated with the preconditioner was set, usually the same





## See Also
 `PC`, `PCSetOperators()`, `KSPGetOperators()`, `KSPSetOperators()`, `PCGetOperators()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/interface/precon.c.html#PCGetOperatorsSet">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)  
