:orphan:
# TSTrajectorySetMaxUnitsDisk
Set maximum number of checkpointing units on disk
## Synopsis
```
#include "petscts.h"
PetscErrorCode TSTrajectorySetMaxUnitsDisk(TSTrajectory tj, PetscInt max_units_disk)
```
Logically Collective
## Input Parameter
- ***tj -*** tstrajectory context
## Output Parameter
- ***max_units_disk -*** maximum number of checkpointing units on disk
## See Also
[](ch_ts), `TSTrajectory`, `TSTrajectorySetMaxCpsDisk()`
## Level
intermediate
## Location
src/ts/trajectory/impls/memory/trajmemory.c
## Implementations
TSTrajectorySetMaxUnitsDisk_Memory in src/ts/trajectory/impls/memory/trajmemory.c
---
[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](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)