:orphan: # 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 [](ch_ts), `TSTrajectoryCreate()`, `TS`, `TSTrajectory`, `TSTrajectorySetType()`, `TSTrajectorySetDirname()`, `TSTrajectorySetFile()`, `TSTrajectoryType` ## Level intermediate ## Location src/ts/trajectory/impls/basic/trajbasic.c --- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)