:orphan:
# 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
 [](ch_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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
