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
PetscSectionpStart - the first
pointpEnd - one past the last point,
pStart\( \le \)pEnd
Notes#
The chart may be thought of as the bounds on the points (indices) one may use to index into numerical data that is associated with
the PetscSection data layout.
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, PetscSection, PetscSectionGetChart(), PetscSectionCreate(), PetscSectionSetNumFields()
Level#
intermediate
Location#
Examples#
src/snes/tutorials/ex7.c
src/ts/tutorials/ex11.c
src/dm/impls/plex/tutorials/ex20.c
src/dm/impls/plex/tutorials/ex7.c
src/ts/tutorials/ex30.c
Index of all PetscSection routines
Table of Contents for all manual pages
Index of all manual pages