:orphan: # TSGetTrajectory Gets the trajectory from a `TS` if it exists ## Synopsis ``` #include "petscts.h" PetscErrorCode TSGetTrajectory(TS ts, TSTrajectory *tr) ``` Collective ## Input Parameter - ***ts -*** the `TS` context obtained from `TSCreate()` ## Output Parameter - ***tr -*** the `TSTrajectory` object, if it exists ## Note This routine should be called after all `TS` options have been set ## See Also [](ch_ts), `TS`, `TSTrajectory`, `TSAdjointSolve()`, `TSTrajectory`, `TSTrajectoryCreate()` ## Level advanced ## Location src/ts/interface/ts.c ## Examples src/ts/tutorials/ex40.c
src/ts/tutorials/ex41.c
src/ts/tutorials/extchem.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/interface/ts.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)