:orphan:
# TSPseudoSetMaxTimeStep
Sets the maximum time step when using the TSPseudoTimeStepDefault() routine. 
## Synopsis
```
#include "petscts.h"   
PetscErrorCode TSPseudoSetMaxTimeStep(TS ts, PetscReal maxdt)
```
Logically Collective


## Input Parameters

- ***ts -*** the timestep context
- ***maxdt -*** the maximum time step, use a non-positive value to deactivate



## Options Database Key

- ***-ts_pseudo_max_dt <increment> -*** set pseudo max dt





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

## Level
advanced

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/pseudo/posindep.c.html#TSPseudoSetMaxTimeStep_Pseudo">TSPseudoSetMaxTimeStep_Pseudo in src/ts/impls/pseudo/posindep.c</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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
