:orphan: # KSPCGSetRadius Sets the radius of the trust region ## Synopsis ``` #include "petscksp.h" PetscErrorCode KSPCGSetRadius(KSP ksp, PetscReal radius) ``` Logically Collective ## Input Parameters - ***ksp -*** the iterative context - ***radius -*** the trust region radius (0 is the default that disable the use of the radius) ## Note When radius is greater then 0, the Steihaugh-Toint trick is used ## See Also [](ch_ksp), `KSP`, `KSPCG`, `KSPNASH`, `KSPSTCG`, `KSPGLTR` ## Level advanced ## Location src/ksp/ksp/impls/cg/cgtype.c ## Implementations KSPCGSetRadius_CG in src/ksp/ksp/impls/cg/cg.c
KSPCGSetRadius_GLTR in src/ksp/ksp/impls/cg/gltr/gltr.c
KSPCGSetRadius_NASH in src/ksp/ksp/impls/cg/nash/nash.c
KSPCGSetRadius_STCG in src/ksp/ksp/impls/cg/stcg/stcg.c
--- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)