:orphan: # TSTrajectoryGetNumSteps Return the number of steps registered in the `TSTrajectory` via `TSTrajectorySet()`. ## Synopsis ``` #include "petscts.h" PetscErrorCode TSTrajectoryGetNumSteps(TSTrajectory tj, PetscInt *steps) ``` Not Collective. ## Input Parameter - ***tj -*** the trajectory object ## Output Parameter - ***steps -*** the number of steps ## See Also [](ch_ts), `TS`, `TSTrajectorySet()` ## 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)