:orphan:
# KSPFCGGetNprealloc
get the number of directions preallocate by `KSPFCG` 
## Synopsis
```
#include "petscksp.h"  
PetscErrorCode KSPFCGGetNprealloc(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), `KSPFCG`, `KSPFCGGetTruncationType()`, `KSPFCGSetNprealloc()`, `KSPFCGSetMmax()`, `KSPFCGGetMmax()`

## Level
advanced

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


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