PCJacobiGetType — PETSc 3.25.2 documentation

Skip to main content
`Ctrl`+`K`

# 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_ROWL1`, `PC_JACOBI_ROWMAX`, `PC_JACOBI_ROWSUM`

## See Also

KSP: Linear System Solvers, `PCJACOBI`, `PCJacobiSetUseAbs()`, `PCJacobiSetType()`

## Level

intermediate

## Location

src/ksp/pc/impls/jacobi/jacobi.c

## Implementations

PCJacobiGetType_Jacobi() in src/ksp/pc/impls/jacobi/jacobi.c

Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages