PETSc version 3.17.5
PetscSectionGetMaxDof
Return the maximum number of degrees of freedom on any point in the chart
Synopsis
#include "petscsection.h"
PetscErrorCode PetscSectionGetMaxDof(PetscSection s, PetscInt *maxDof)
Not Collective
Input Parameters
Output Parameter
Notes
The returned number is up-to-date without need for PetscSectionSetUp().
Developer Notes
The returned number is calculated lazily and stashed.
A call to PetscSectionInvalidateMaxDof_Internal() invalidates the stashed value.
PetscSectionInvalidateMaxDof_Internal() is called in PetscSectionSetDof(), PetscSectionAddDof() and PetscSectionReset().
It should also be called every time atlasDof is modified directly.
See Also
PetscSectionGetDof(), PetscSectionSetDof(), PetscSectionAddDof(), PetscSectionCreate()
Level
intermediate
Location
src/vec/is/section/interface/section.c
Index of all PetscSection routines
Table of Contents for all manual pages
Index of all manual pages