# KSPPIPEGCRGetMmax
get the maximum number of previous directions `KSPPIPEGCR` will store 
## Synopsis
```
#include "petscksp.h"  
PetscErrorCode KSPPIPEGCRGetMmax(KSP ksp, PetscInt *mmax)
```
Not Collective


## Input Parameter

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



## Output Parameter

- ***mmax -*** the maximum number of previous directions allowed for orthogonalization





## See Also
 [](chapter_ksp), `KSPPIPEGCR`, `KSPPIPEGCRGetTruncationType()`, `KSPPIPEGCRGetNprealloc()`, `KSPPIPEGCRSetMmax()`

## Level
intermediate

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


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