# TSPseudoComputeTimeStep
Computes the next timestep for a currently running pseudo-timestepping process. 
## Synopsis
```
#include "petscts.h"   
PetscErrorCode TSPseudoComputeTimeStep(TS ts, PetscReal *dt)
```
Collective


## Input Parameter

- ***ts -*** timestep context



## Output Parameter

- ***dt -*** newly computed timestep





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


## See Also
 [](chapter_ts), `TSPSEUDO`, `TSPseudoTimeStepDefault()`, `TSPseudoSetTimeStep()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/pseudo/posindep.c.html#TSPseudoComputeTimeStep">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)  
