: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 -*** 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 src/snes/interface/snes.c --- [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)