:orphan:
# KSPGCRGetRestart
Gets number of iterations at which `KSPGCR` restarts. 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode KSPGCRGetRestart(KSP ksp, PetscInt *restart)
```
Not Collective


## Input Parameter

- ***ksp -*** the Krylov space context



## Output Parameter

- ***restart -*** integer restart value





## See Also
 [](ch_ksp), `KSPGCR`, `KSPSetTolerances()`, `KSPGCRSetRestart()`, `KSPGMRESGetRestart()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/impls/gcr/gcr.c.html#KSPGCRGetRestart">src/ksp/ksp/impls/gcr/gcr.c</A>

## Implementations

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


---
[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)  
