# PCLoad
Loads a `PC` that has been stored in binary  with `PCView()`. 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode PCLoad(PC newdm, PetscViewer viewer)
```
Collective


## Input Parameters

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





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


## See Also
 `PC`, `PetscViewerBinaryOpen()`, `PCView()`, `MatLoad()`, `VecLoad()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/interface/precon.c.html#PCLoad">src/ksp/pc/interface/precon.c</A>


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


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