# PCSORGetIterations
Gets the number of inner iterations to be used by the SOR preconditioner. The default is 1. 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCSORGetIterations(PC pc, PetscInt *its, PetscInt *lits)
```
Logically Collective on pc


## Input Parameter

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



## Output Parameters

- ***lits -*** number of local iterations, smoothings over just variables on processor
- ***its -*** number of parallel iterations to use; each parallel iteration has lits local iterations



## Options Database Keys

- ***-pc_sor_its <its> -*** Sets number of iterations
- ***-pc_sor_lits <lits> -*** Sets number of local iterations





## Note
When run on one processor the number of smoothings is lits*its


## See Also
 `PCSOR`, `PCSORSetOmega()`, `PCSORSetSymmetric()`, `PCSORSetIterations()`

## Level
intermediate

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

## Implementations

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


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