# KSPRichardsonSetScale
Set the damping factor; if this routine is not called, the factor defaults to 1.0. 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode KSPRichardsonSetScale(KSP ksp, PetscReal scale)
```
Logically Collective


## Input Parameters

- ***ksp -*** the iterative context
- ***scale -*** the damping factor



## Options Database Keys

- ***-ksp_richardson_self <scale> -*** Set the scale factor




.seealso: [](chapter_ksp), `KSPRICHARDSON`, `KSPRichardsonSetSelfScale()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/impls/rich/richscale.c.html#KSPRichardsonSetScale">src/ksp/ksp/impls/rich/richscale.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/impls/rich/rich.c.html#KSPRichardsonSetScale_Richardson">KSPRichardsonSetScale_Richardson in src/ksp/ksp/impls/rich/rich.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/impls/rich/richscale.c)


[Index of all KSP routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
