:orphan: # TaoSetConvergedReason Sets the termination flag on a `Tao` object ## Synopsis ``` #include "petsctao.h" PetscErrorCode TaoSetConvergedReason(Tao tao, TaoConvergedReason reason) ``` Logically Collective ## Input Parameters - ***tao -*** the `Tao` context - ***reason -*** the `TaoConvergedReason` ## See Also [](ch_tao), `Tao`, `TaoConvergedReason` ## Level intermediate ## Location src/tao/interface/taosolver.c ## Examples src/tao/bound/tutorials/jbearing2.c
src/tao/unconstrained/tutorials/eptorsion2f.F90
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/interface/taosolver.c) [Index of all Tao routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)