# KSPCGSetRadius
Sets the radius of the trust region when the solver is used inside `SNESNEWTONTR` 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode KSPCGSetRadius(KSP ksp, PetscReal radius)
```
Logically Collective


## Input Parameters

- ***ksp    -*** the iterative context
- ***radius -*** the trust region radius (Infinity is the default)





## See Also
 [](chapter_ksp), `KSP`, `KSPCG`, `KSPNASH`, `KSPSTCG`, `KSPGLTR`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/impls/cg/cgtype.c.html#KSPCGSetRadius">src/ksp/ksp/impls/cg/cgtype.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/impls/cg/gltr/gltr.c.html#KSPCGSetRadius_GLTR">KSPCGSetRadius_GLTR in src/ksp/ksp/impls/cg/gltr/gltr.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/impls/cg/nash/nash.c.html#KSPCGSetRadius_NASH">KSPCGSetRadius_NASH in src/ksp/ksp/impls/cg/nash/nash.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/impls/cg/stcg/stcg.c.html#KSPCGSetRadius_STCG">KSPCGSetRadius_STCG in src/ksp/ksp/impls/cg/stcg/stcg.c</A><BR>


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