:orphan: # KSPPIPEFCGGetNprealloc get the number of directions to preallocate by `KSPPIPEFCG` ## Synopsis ``` #include "petscksp.h" PetscErrorCode KSPPIPEFCGGetNprealloc(KSP ksp, PetscInt *nprealloc) ``` Not Collective ## Input Parameter - ***ksp -*** the Krylov space context ## Output Parameter - ***nprealloc -*** the number of directions preallocated ## See Also [](ch_ksp), `KSPPIPEFCG`, `KSPPIPEFCGGetTruncationType()`, `KSPPIPEFCGSetNprealloc()`, `KSPPIPEFCGSetMmax()`, `KSPPIPEFCGGetMmax()` ## Level advanced ## 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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)