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





## Note
FCG stores mmax+1 directions at most (mmax previous ones, and one current one)


## See Also
 [](chapter_ksp), `KSPFCG`, `KSPFCGGetTruncationType()`, `KSPFCGGetNprealloc()`, `KSPFCGSetMmax()`

## Level
intermediate

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


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