:orphan:
# TSConvergedReason
reason a `TS` method has converged (integrated to the requested time) or not 
## Synopsis
```
typedef enum {
  TS_CONVERGED_ITERATING          = 0,
  TS_CONVERGED_TIME               = 1,
  TS_CONVERGED_ITS                = 2,
  TS_CONVERGED_USER               = 3,
  TS_CONVERGED_EVENT              = 4,
  TS_CONVERGED_PSEUDO_FATOL       = 5,
  TS_CONVERGED_PSEUDO_FRTOL       = 6,
  TS_DIVERGED_NONLINEAR_SOLVE     = -1,
  TS_DIVERGED_STEP_REJECTED       = -2,
  TSFORWARD_DIVERGED_LINEAR_SOLVE = -3,
  TSADJOINT_DIVERGED_LINEAR_SOLVE = -4
} TSConvergedReason;
```

## Values

- ***`TS_CONVERGED_ITERATING`          -*** this only occurs if `TSGetConvergedReason()` is called during the `TSSolve()`
- ***`TS_CONVERGED_TIME`               -*** the final time was reached
- ***`TS_CONVERGED_ITS`                -*** the maximum number of iterations (time-steps) was reached prior to the final time
- ***`TS_CONVERGED_USER`               -*** user requested termination
- ***`TS_CONVERGED_EVENT`              -*** user requested termination on event detection
- ***`TS_CONVERGED_PSEUDO_FATOL`       -*** stops when function norm decreased by a set amount, used only for `TSPSEUDO`
- ***`TS_CONVERGED_PSEUDO_FRTOL`       -*** stops when function norm decreases below a set amount, used only for `TSPSEUDO`
- ***`TS_DIVERGED_NONLINEAR_SOLVE`     -*** too many nonlinear solve failures have occurred
- ***`TS_DIVERGED_STEP_REJECTED`       -*** too many steps were rejected
- ***`TSFORWARD_DIVERGED_LINEAR_SOLVE` -*** tangent linear solve failed
- ***`TSADJOINT_DIVERGED_LINEAR_SOLVE` -*** transposed linear solve failed





## See Also
 [](ch_ts), `TS`, `TSGetConvergedReason()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscts.h.html#TSConvergedReason">include/petscts.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscts.h)


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