:orphan:
# PCFactorGetMatSolverType
gets the solver package that is used to perform the factorization
## Synopsis
```
#include "petscpc.h"
PetscErrorCode PCFactorGetMatSolverType(PC pc, MatSolverType *stype)
```
Not Collective
## Input Parameter
- ***pc -*** the preconditioner context
## Output Parameter
- ***stype -*** for example, `MATSOLVERSUPERLU`, `MATSOLVERSUPERLU_DIST`, `MATSOLVERMUMPS`
## See Also
`PCLU`, `PCCHOLESKY`, `MatGetFactor()`, `MatSolverType`, `PCFactorGetMatSolverType()`, `MatSolverType`,
`MATSOLVERSUPERLU`, `MATSOLVERSUPERLU_DIST`, `MATSOLVERMUMPS`
## Level
intermediate
## Location
src/ksp/pc/impls/factor/factor.c
## Implementations
PCFactorGetMatSolverType_Factor in src/ksp/pc/impls/factor/factimpl.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/factor/factor.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)