# 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 -*** maximum number of previous directions ## See Also [](chapter_ksp), `KSPPIPEFCG`, `KSPPIPEFCGGetTruncationType()`, `KSPPIPEFCGGetNprealloc()`, `KSPPIPEFCGSetMmax()` ## Level intermediate ## Location src/ksp/ksp/impls/fcg/pipefcg/pipefcg.c --- [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)