:orphan:
# PetscSectionSetUp
Calculate offsets based upon the number of degrees of freedom for each point in preparation for use of the `PetscSection`
## Synopsis
```
#include "petscsection.h"
PetscErrorCode PetscSectionSetUp(PetscSection s)
```
Not Collective
## Input Parameter
- ***s -*** the `PetscSection`
## Notes
If used, `PetscSectionSetPermutation()` must be called before this routine.
`PetscSectionSetPointMajor()`, cannot be called after this routine.
## See Also
[PetscSection](sec_petscsection), `PetscSection`, `PetscSectionCreate()`, `PetscSectionSetPermutation()`
## Level
intermediate
## Location
src/vec/is/section/interface/section.c
## Examples
src/dm/impls/plex/tutorials/ex7.c
src/snes/tutorials/ex7.c
src/ts/tutorials/ex11.c
src/ts/tutorials/ex11_sa.c
---
[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](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)