# TSPseudoTimeStepDefault
Default code to compute pseudo-timestepping.  Use with `TSPseudoSetTimeStep()`. 
## Synopsis
```
#include "petscts.h"   
PetscErrorCode TSPseudoTimeStepDefault(TS ts, PetscReal *newdt, void *dtctx)
```
Collective


## Input Parameters

- ***ts -*** the timestep context
- ***dtctx -*** unused timestep context



## Output Parameter

- ***newdt -*** the timestep to use for the next step





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

## Level
advanced

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex1.c.html">src/ts/tutorials/ex1.c.html</A><BR>


---
[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)  
