# PCDeflationSetInitOnly
Do only initialization step. Sets initial guess to the solution on the deflation space but does not apply the deflation preconditioner. The additional preconditioner is still applied. 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode PCDeflationSetInitOnly(PC pc, PetscBool flg)
```
Logically Collective


## Input Parameters

- ***pc  -*** the preconditioner context
- ***flg -*** default `PETSC_FALSE`



## Options Database Key

- ***-pc_deflation_init_only <false> -*** if true computes only the special guess





## See Also
 `PCDEFLATION`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/deflation/deflation.c.html#PCDeflationSetInitOnly">src/ksp/pc/impls/deflation/deflation.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/deflation/deflation.c.html#PCDeflationSetInitOnly_Deflation">PCDeflationSetInitOnly_Deflation in src/ksp/pc/impls/deflation/deflation.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/deflation/deflation.c)


[Index of all PC routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
