:orphan: # KSPGCRSetRestart Sets number of iterations at which `KSPGCR` restarts. ## Synopsis ``` #include "petscksp.h" PetscErrorCode KSPGCRSetRestart(KSP ksp, PetscInt restart) ``` Not Collective ## Input Parameters - ***ksp -*** the Krylov space context - ***restart -*** integer restart value ## Options Database Key - ***-ksp_gcr_restart -*** the number of stored vectors to orthogonalize against ## Note The default value is 30. ## Developer Note The API could be made uniform for all `KSP` methods have have a restart. ## See Also [](ch_ksp), `KSPGCR`, `KSPSetTolerances()`, `KSPGCRGetRestart()`, `KSPGMRESSetRestart()` ## Level intermediate ## Location src/ksp/ksp/impls/gcr/gcr.c ## Implementations KSPGCRSetRestart_GCR in src/ksp/ksp/impls/gcr/gcr.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/impls/gcr/gcr.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)