# SNESLoad
Loads a `SNES` that has been stored in `PETSCVIEWERBINARY` with `SNESView()`. 
## Synopsis
```
#include "petscsnes.h"  
PetscErrorCode SNESLoad(SNES snes, PetscViewer viewer)
```
Collective


## Input Parameters

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





## Note
The type is determined by the data in the file, any type set into the `SNES` before this call is ignored.


## See Also
 `SNESCreate()`, `SNESType`, `PetscViewerBinaryOpen()`, `SNESView()`, `MatLoad()`, `VecLoad()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/interface/snes.c.html#SNESLoad">src/snes/interface/snes.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/interface/snes.c)


[Index of all SNES routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
