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


## Input Parameters

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





## Note
`PetscSectionView()`, when viewer is of type `PETSCVIEWERHDF5`, only saves
distribution independent data, such as dofs, offsets, constraint dofs,
and constraint indices. Points that have negative dofs, for instance,
are not saved as they represent points owned by other processes.
Point numbering and rank assignment is currently not stored.
The saved section can be loaded with `PetscSectionLoad()`.


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

## Level
beginner

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/tutorials/ex1.c.html">src/dm/impls/plex/tutorials/ex1.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/tutorials/ex1f90.F90.html">src/dm/impls/plex/tutorials/ex1f90.F90.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/ex13.c.html">src/snes/tutorials/ex13.c.html</A><BR>


---
[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)  
