:orphan:
# SNESSetForceIteration
force `SNESSolve()` to take at least one iteration regardless of the initial residual norm 
## Synopsis
```
#include "petscsnes.h"  
PetscErrorCode SNESSetForceIteration(SNES snes, PetscBool force)
```
Logically Collective


## Input Parameters

- ***snes -*** the `SNES` context
- ***force -*** `PETSC_TRUE` require at least one iteration



## Options Database Key

- ***-snes_force_iteration <force> -*** Sets forcing an iteration





## Note
This is used sometimes with `TS` to prevent `TS` from detecting a false steady state solution


## See Also
 [](ch_snes), `SNES`, `TS`, `SNESSetTrustRegionTolerance()`, `SNESSetDivergenceTolerance()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/interface/snes.c.html#SNESSetForceIteration">src/snes/interface/snes.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/interface/snes.c)


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