# TSPseudoVerifyTimeStep
Verifies whether the last timestep was acceptable. 
## Synopsis
```
#include "petscts.h"   
PetscErrorCode TSPseudoVerifyTimeStep(TS ts, Vec update, PetscReal *dt, PetscBool *flag)
```
Collective


## Input Parameters

- ***ts -*** timestep context
- ***update -*** latest solution vector



## Output Parameters

- ***dt -*** newly computed timestep (if it had to shrink)
- ***flag -*** indicates if current timestep was ok





## Notes
The routine to be called here to compute the timestep should be
set by calling `TSPseudoSetVerifyTimeStep()`.


## See Also
 [](chapter_ts), `TSPSEUDO`, `TSPseudoSetVerifyTimeStep()`, `TSPseudoVerifyTimeStepDefault()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/pseudo/posindep.c.html#TSPseudoVerifyTimeStep">src/ts/impls/pseudo/posindep.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/impls/pseudo/posindep.c)


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