# TSTRAJECTORYBASIC
Stores each solution of the ODE/DAE in a file Saves each timestep into a separate file named TS-data-XXXXXX/TS-%06d.bin. The file name can be changed.

This version saves the solutions at all the stages

$PETSC_DIR/share/petsc/matlab/PetscReadBinaryTrajectory.m can read in files created with this format




## See Also
 [](chapter_ts), `TSTrajectoryCreate()`, `TS`, `TSTrajectory`, `TSTrajectorySetType()`, `TSTrajectorySetDirname()`, `TSTrajectorySetFile()`,
`TSTrajectoryType`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/trajectory/impls/basic/trajbasic.c.html#TSTRAJECTORYBASIC">src/ts/trajectory/impls/basic/trajbasic.c</A>


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