# TSTrajectorySetDirname
Specify the name of the directory where disk checkpoints are stored. 
## Synopsis
```
#include "petscts.h"  
PetscErrorCode TSTrajectorySetDirname(TSTrajectory tj, const char dirname[])
```
Collective on TSTrajectory


## Input Parameters

- ***tj      -*** the TSTrajectory context
- ***dirname -*** the directory name



## Options Database Keys

- ***-ts_trajectory_dirname -*** set the directory name



## Notes
The final location of the files is determined by dirname/filetemplate where filetemplate was provided by TSTrajectorySetFiletemplate()




## See Also
 `TSTrajectorySetFiletemplate()`, `TSTrajectorySetUp()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/trajectory/interface/traj.c.html#TSTrajectorySetDirname">src/ts/trajectory/interface/traj.c</A>


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