PetscSectionGetDof#

Return the number of degrees of freedom associated with a given point.

Synopsis#

#include "petscsection.h"   
PetscErrorCode PetscSectionGetDof(PetscSection s, PetscInt point, PetscInt *numDof)

Not Collective

Input Parameters#

Output Parameter#

  • numDof - the number of dof

Note#

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

See Also#

PetscSection, PetscSection, PetscSectionSetDof(), PetscSectionCreate()

Level#

intermediate

Location#

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

Examples#

src/dm/impls/plex/tutorials/ex6.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