# TSTrajectoryRestoreUpdatedHistoryVecs
Restores updated state and time-derivative history vectors obtained with `TSTrajectoryGetUpdatedHistoryVecs()`. 
## Synopsis
```
#include "petscts.h"  
PetscErrorCode TSTrajectoryRestoreUpdatedHistoryVecs(TSTrajectory tj, Vec *U, Vec *Udot)
```
Collective


## Input Parameters

- ***tj   -*** the `TSTrajectory` context
- ***U    -*** state vector at given time (can be interpolated)
- ***Udot -*** time-derivative vector at given time (can be interpolated)





## See Also
 [](chapter_ts), `TSTrajectory`, `TSTrajectoryGetUpdatedHistoryVecs()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/trajectory/interface/traj.c.html#TSTrajectoryRestoreUpdatedHistoryVecs">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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
