:orphan:
# PCJacobiGetType
Gets how the diagonal matrix is produced for the preconditioner 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCJacobiGetType(PC pc, PCJacobiType *type)
```
Not Collective


## Input Parameter

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



## Output Parameter

- ***type -*** `PC_JACOBI_DIAGONAL`, `PC_JACOBI_ROWMAX`, `PC_JACOBI_ROWSUM`





## See Also
 `PCJACOBI`, `PCJacobiaUseAbs()`, `PCJacobiSetType()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/jacobi/jacobi.c.html#PCJacobiGetType">src/ksp/pc/impls/jacobi/jacobi.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/jacobi/jacobi.c.html#PCJacobiGetType_Jacobi">PCJacobiGetType_Jacobi in src/ksp/pc/impls/jacobi/jacobi.c</A><BR>


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