# PetscSectionLoad
Loads a `PetscSection` 
## Synopsis
```
#include "petscsection.h"   
PetscErrorCode PetscSectionLoad(PetscSection s, PetscViewer viewer)
```
Collective


## Input Parameters

- ***s -*** the `PetscSection` object to load
- ***v -*** the viewer





## Note
`PetscSectionLoad()`, when viewer is of type `PETSCVIEWERHDF5`, loads
a section saved with `PetscSectionView()`. The number of processes
used here (N) does not need to be the same as that used when saving.
After calling this function, the chart of s on rank i will be set
to [0, E_i), where \sum_{i=0}^{N-1}E_i equals to the total number of
saved section points.


## See Also
 [PetscSection](sec_petscsection), `PetscSection`, `PetscSectionCreate()`, `PetscSectionDestroy()`, `PetscSectionView()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/section/interface/section.c.html#PetscSectionLoad">src/vec/is/section/interface/section.c</A>


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


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