:orphan:
# TSTrajectorySetType
Sets the storage method to be used as in a trajectory 
## Synopsis
```
#include "petscts.h"  
PetscErrorCode TSTrajectorySetType(TSTrajectory tj, TS ts, TSTrajectoryType type)
```
Collective


## Input Parameters

- ***tj   -*** the `TSTrajectory` context
- ***ts   -*** the `TS` context
- ***type -*** a known method



## Options Database Key

- ***-ts_trajectory_type <type> -*** Sets the method; use -help for a list of available methods (for instance, basic)





## Developer Note
Why does this option require access to the `TS`


## See Also
 [](ch_ts), `TSTrajectory`, `TS`, `TSTrajectoryCreate()`, `TSTrajectorySetFromOptions()`, `TSTrajectoryDestroy()`, `TSTrajectoryGetType()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/trajectory/interface/traj.c.html#TSTrajectorySetType">src/ts/trajectory/interface/traj.c</A>


---
[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)  
