:orphan:
# TSTrajectorySetVariableNames
Sets the name of each component in the solution vector so that it may be saved with the trajectory
## Synopsis
```
#include "petscts.h"
PetscErrorCode TSTrajectorySetVariableNames(TSTrajectory ctx, const char *const *names)
```
Collective
## Input Parameters
- ***tr -*** the trajectory context
- ***names -*** the names of the components, final string must be NULL
## Fortran Note
Fortran interface is not possible because of the string array argument
## See Also
[](ch_ts), `TSTrajectory`, `TSGetTrajectory()`
## Level
intermediate
## Location
src/ts/trajectory/interface/traj.c
## Examples
src/ts/tutorials/extchem.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)