# KSPPIPEFCGGetMmax
get the maximum number of previous directions `KSPPIPEFCG` will store 
## Synopsis
```
#include "petscksp.h"  
PetscErrorCode KSPPIPEFCGGetMmax(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



## Options Database Key

- ***-ksp_pipefcg_mmax <N> -*** maximum number of previous directions





## See Also
 [](chapter_ksp), `KSPPIPEFCG`, `KSPPIPEFCGGetTruncationType()`, `KSPPIPEFCGGetNprealloc()`, `KSPPIPEFCGSetMmax()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/impls/fcg/pipefcg/pipefcg.c.html#KSPPIPEFCGGetMmax">src/ksp/ksp/impls/fcg/pipefcg/pipefcg.c</A>


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