:orphan: # TaoGetConvergedReason Gets the reason the `TaoSolve()` was stopped. ## Synopsis ``` #include "petsctao.h" PetscErrorCode TaoGetConvergedReason(Tao tao, TaoConvergedReason *reason) ``` Not Collective ## Input Parameter - ***tao -*** the `Tao` solver context ## Output Parameter - ***reason -*** value of `TaoConvergedReason` ## See Also [](ch_tao), `Tao`, `TaoConvergedReason`, `TaoSetConvergenceTest()`, `TaoSetTolerances()` ## Level intermediate ## Location src/tao/interface/taosolver.c ## Examples src/tao/constrained/tutorials/maros.c
src/tao/leastsquares/tutorials/chwirut1f.F90
src/tao/unconstrained/tutorials/rosenbrock2.c
src/tao/unconstrained/tutorials/rosenbrock3.c
--- [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)