# TSLoad
Loads a KSP that has been stored in binary  with KSPView(). 
## Synopsis
```
#include "petscts.h"  
PetscErrorCode TSLoad(TS ts, PetscViewer viewer)
```
Collective on PetscViewer


## Input Parameters

- ***newdm -*** the newly loaded TS, this needs to have been created with TSCreate() or
some related function before a call to TSLoad().
- ***viewer -*** binary file viewer, obtained from PetscViewerBinaryOpen()





## Notes
The type is determined by the data in the file, any type set into the TS before this call is ignored.


## Notes for advanced users
Most users should not need to know the details of the binary storage
format, since TSLoad() and TSView() completely hide these details.
But for anyone who's interested, the standard binary matrix storage
format is
```none
     has not yet been determined
```



## See Also
 `PetscViewerBinaryOpen()`, `TSView()`, `MatLoad()`, `VecLoad()`

## Level
intermediate

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex28.c.html">src/ts/tutorials/ex28.c.html</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/arkimex/arkimex.c.html#TSLoad_ARKIMEX">TSLoad_ARKIMEX in src/ts/impls/arkimex/arkimex.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/explicit/rk/rk.c.html#TSLoad_RK">TSLoad_RK in src/ts/impls/explicit/rk/rk.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/glee/glee.c.html#TSLoad_GLEE">TSLoad_GLEE in src/ts/impls/glee/glee.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/implicit/irk/irk.c.html#TSLoad_IRK">TSLoad_IRK in src/ts/impls/implicit/irk/irk.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/multirate/mprk.c.html#TSLoad_MPRK">TSLoad_MPRK in src/ts/impls/multirate/mprk.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/rosw/rosw.c.html#TSLoad_RosW">TSLoad_RosW in src/ts/impls/rosw/rosw.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/interface/ts.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)  
