:orphan: # 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 [](ch_ksp), `KSPFCG`, `KSPFCGGetTruncationType()`, `KSPFCGGetNprealloc()`, `KSPFCGSetMmax()` ## Level intermediate ## Location src/ksp/ksp/impls/fcg/fcg.c --- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)