:orphan: # PetscSectionSetChart Sets the range [`pStart`, `pEnd`) in which points (indices) lie for this `PetscSection` on this MPI process ## Synopsis ``` #include "petscsection.h" PetscErrorCode PetscSectionSetChart(PetscSection s, PetscInt pStart, PetscInt pEnd) ``` Not Collective ## Input Parameters - ***s -*** the `PetscSection` - ***pStart -*** the first point - ***pEnd -*** one past the last point ## Notes The charts on different MPI processes may (and often do) overlap If you intend to use `PetscSectionSetNumFields()` it must be called before this call. The chart for all fields created with `PetscSectionSetNumFields()` is the same as this chart. ## See Also [PetscSection](sec_petscsection), `PetscSection`, `PetscSectionGetChart()`, `PetscSectionCreate()`, `PetscSectionSetNumFields()` ## 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)