# TSTrajectoryRegister Adds a way of storing trajectories to the `TS` package ## Synopsis ``` #include "petscts.h" PetscErrorCode TSTrajectoryRegister(const char sname[], PetscErrorCode (*function)(TSTrajectory, TS)) ``` Not Collective ## Input Parameters - ***name -*** the name of a new user-defined creation routine - ***create_func -*** the creation routine itself ## Note `TSTrajectoryRegister()` may be called multiple times to add several user-defined tses. ## See Also [](chapter_ts), `TSTrajectoryRegisterAll()` ## 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)