# TSAdaptLoad
Loads a TSAdapt that has been stored in binary  with TSAdaptView(). 
## Synopsis
```
#include "petscts.h" 
PetscErrorCode TSAdaptLoad(TSAdapt adapt, PetscViewer viewer)
```
Collective on PetscViewer


## Input Parameters

- ***newdm -*** the newly loaded TSAdapt, this needs to have been created with TSAdaptCreate() or
some related function before a call to TSAdaptLoad().
- ***viewer -*** binary file viewer, obtained from PetscViewerBinaryOpen() or
HDF5 file viewer, obtained from PetscViewerHDF5Open()





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


## Notes for advanced users
Most users should not need to know the details of the binary storage
format, since TSAdaptLoad() and TSAdaptView() 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()`, `TSAdaptView()`, `MatLoad()`, `VecLoad()`

## Level
intermediate

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


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