# TSTrajectorySetMaxCpsDisk
Set maximum number of checkpoints on disk 
## Synopsis
```
#include "petscts.h"  
PetscErrorCode TSTrajectorySetMaxCpsDisk(TSTrajectory tj, PetscInt max_cps_disk)
```
Logically collective


## Input Parameter

- ***tj -*** tstrajectory context



## Output Parameter

- ***max_cps_disk -*** maximum number of checkpoints on disk





## See Also
 [](chapter_ts), `TSTrajectory`, `TSTrajectorySetMaxUnitsDisk()`, `TSTrajectorySetMaxUnitsRAM()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/trajectory/impls/memory/trajmemory.c.html#TSTrajectorySetMaxCpsDisk">src/ts/trajectory/impls/memory/trajmemory.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/trajectory/impls/memory/trajmemory.c.html#TSTrajectorySetMaxCpsDisk_Memory">TSTrajectorySetMaxCpsDisk_Memory in src/ts/trajectory/impls/memory/trajmemory.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/trajectory/impls/memory/trajmemory.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)  
