PetscSectionGetOffset#

Return the offset into an array or Vec for the dof associated with the given point.

Synopsis#

#include "petscsection.h"   
PetscErrorCode PetscSectionGetOffset(PetscSection s, PetscInt point, PetscInt *offset)

Not Collective

Input Parameters#

Output Parameter#

  • offset - the offset

Note#

In a global section, this offset will be negative for points not owned by this process.

See Also#

PetscSection, PetscSection, PetscSectionGetFieldOffset(), PetscSectionCreate()

Level#

intermediate

Location#

src/vec/is/section/interface/section.c

Examples#

src/snes/tutorials/ex13.c.html
src/tao/tutorials/ex3.c.html


Edit on GitLab

Index of all PetscSection routines
Table of Contents for all manual pages
Index of all manual pages