# TSTrajectoryCreate
This function creates an empty trajectory object used to store the time dependent solution of an ODE/DAE 
## Synopsis
```
#include "petscts.h"  
PetscErrorCode TSTrajectoryCreate(MPI_Comm comm, TSTrajectory *tj)
```
Collective


## Input Parameter

- ***comm -*** the communicator



## Output Parameter

- ***tj   -*** the trajectory object





## Notes
Usually one does not call this routine, it is called automatically when one calls `TSSetSaveTrajectory()`.


## See Also
 [](chapter_ts), `TS`, `TSTrajectory`, `TSTrajectorySetUp()`, `TSTrajectoryDestroy()`, `TSTrajectorySetType()`, `TSTrajectorySetVariableNames()`, `TSGetTrajectory()`, `TSTrajectorySetKeepFiles()`

## Level
developer

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/trajectory/impls/basic/trajbasic.c.html#TSTrajectoryCreate_Basic">TSTrajectoryCreate_Basic in src/ts/trajectory/impls/basic/trajbasic.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/trajectory/impls/memory/trajmemory.c.html#TSTrajectoryCreate_Memory">TSTrajectoryCreate_Memory in src/ts/trajectory/impls/memory/trajmemory.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/trajectory/impls/singlefile/singlefile.c.html#TSTrajectoryCreate_Singlefile">TSTrajectoryCreate_Singlefile in src/ts/trajectory/impls/singlefile/singlefile.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/trajectory/impls/visualization/trajvisualization.c.html#TSTrajectoryCreate_Visualization">TSTrajectoryCreate_Visualization in src/ts/trajectory/impls/visualization/trajvisualization.c</A><BR>


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