# 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
 [](chapter_ts), `TSTrajectory`, `TSTrajectorySetMaxCpsDisk()`

## Level
intermediate

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/trajectory/impls/memory/trajmemory.c.html#TSTrajectorySetMaxUnitsDisk_Memory">TSTrajectorySetMaxUnitsDisk_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)  
