:orphan: # TSTrajectorySetDirname Specify the name of the directory where `TSTrajectory` disk checkpoints are stored. ## Synopsis ``` #include "petscts.h" PetscErrorCode TSTrajectorySetDirname(TSTrajectory tj, const char dirname[]) ``` Collective ## Input Parameters - ***tj -*** the `TSTrajectory` context - ***dirname -*** the directory name ## Options Database Key - ***-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()` If this is not called `TSTrajectory` selects a unique new name for the directory ## See Also [](ch_ts), `TSTrajectory`, `TSTrajectorySetFiletemplate()`, `TSTrajectorySetUp()` ## Level developer ## Location src/ts/trajectory/interface/traj.c --- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)