# TSTrajectorySetSolutionOnly Tells the trajectory to store just the solution, and not any intermediate stage information ## Synopsis ``` #include "petscts.h" PetscErrorCode TSTrajectorySetSolutionOnly(TSTrajectory tj, PetscBool solution_only) ``` Collective ## Input Parameters - ***tj -*** the `TSTrajectory` context obtained with `TSGetTrajectory()` - ***flg -*** the boolean flag ## See Also [](chapter_ts), `TSTrajectory`, `TSSetSaveTrajectory()`, `TSTrajectoryCreate()`, `TSTrajectoryDestroy()`, `TSTrajectoryGetSolutionOnly()` ## 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](/docs/manualpages/index.md) [Index of all manual pages](/docs/manualpages/singleindex.md)