:orphan:
# PCJacobiSetUseAbs
Causes the Jacobi preconditioner `PCJACOBI` to use the absolute values of the diagonal divisors in the preconditioner 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCJacobiSetUseAbs(PC pc, PetscBool flg)
```
Logically Collective


## Input Parameters

- ***pc -*** the preconditioner context
- ***flg -*** whether to use absolute values or not



## Options Database Key

- ***-pc_jacobi_abs <bool> -*** use absolute values



## Note
This takes affect at the next construction of the preconditioner




## See Also
 `PCJACOBI`, `PCJacobiaSetType()`, `PCJacobiGetUseAbs()`

## Level
intermediate

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/jacobi/jacobi.c.html#PCJacobiSetUseAbs_Jacobi">PCJacobiSetUseAbs_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)  
