:orphan:
# TSTrajectorySetMaxCpsRAM
Set maximum number of checkpoints in RAM
## Synopsis
```
#include "petscts.h"
PetscErrorCode TSTrajectorySetMaxCpsRAM(TSTrajectory tj, PetscInt max_cps_ram)
```
Logically Collective
## Input Parameter
- ***tj -*** tstrajectory context
## Output Parameter
- ***max_cps_ram -*** maximum number of checkpoints in RAM
## See Also
[](ch_ts), `TSTrajectory`, `TSTrajectorySetMaxUnitsRAM()`
## Level
intermediate
## Location
src/ts/trajectory/impls/memory/trajmemory.c
## Implementations
TSTrajectorySetMaxCpsRAM_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)