:orphan:
# KSPPIPEFCGSetNprealloc
set the number of directions to preallocate with `KSPPIPEFCG` 
## Synopsis
```
#include "petscksp.h"  
PetscErrorCode KSPPIPEFCGSetNprealloc(KSP ksp, PetscInt nprealloc)
```
Logically Collective


## Input Parameters

- ***ksp -*** the Krylov space context
- ***nprealloc -*** the number of vectors to preallocate



## Options Database Key

- ***-ksp_pipefcg_nprealloc <N> -*** the number of vectors to preallocate





## See Also
 [](ch_ksp), `KSPPIPEFCG`, `KSPPIPEFCGSetTruncationType()`, `KSPPIPEFCGGetNprealloc()`, `KSPPIPEFCGSetMmax()`, `KSPPIPEFCGGetMmax()`

## Level
advanced

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


---
[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)  
