:orphan: # KSPPIPEGCRSetNprealloc set the number of directions to preallocate with `KSPPIPEGCR` ## Synopsis ``` #include "petscksp.h" PetscErrorCode KSPPIPEGCRSetNprealloc(KSP ksp, PetscInt nprealloc) ``` Logically Collective ## Input Parameters - ***ksp -*** the Krylov space context - ***nprealloc -*** the number of vectors to preallocate ## Options Database Key - ***-ksp_pipegcr_nprealloc -*** number of vectors to preallocate ## See Also [](ch_ksp), `KSPPIPEGCR`, `KSPPIPEGCRGetTruncationType()`, `KSPPIPEGCRGetNprealloc()` ## Level advanced ## Location src/ksp/ksp/impls/gcr/pipegcr/pipegcr.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/impls/gcr/pipegcr/pipegcr.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)