DMFieldShellSetGetDegree — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# DMFieldShellSetGetDegree

Register the routine that reports the polynomial degree bounds of a `DMFIELDSHELL` over a set of mesh points.

## Synopsis

    #include "petscdmfield.h"
    PetscErrorCode DMFieldShellSetGetDegree(DMField field, PetscErrorCode (*getDegree)(DMField field, IS is, PetscInt *minDegree, PetscInt *maxDegree))

Logically Collective

## Input Parameters

- field - the `DMField` of type `DMFIELDSHELL`

- getDegree - callback that returns the minimum and maximum polynomial degrees of the field over the given point `IS`

## Calling sequence of `getDegree`

- field - the `DMField` of type `DMFIELDSHELL`

- is - the `IS` of mesh points over which the degree bounds are requested

- minDegree - the degree of the largest polynomial space contained in the field on each element

- maxDegree - the largest degree of the smallest polynomial space containing the field on any element

## See Also

`DMField`, `DMFIELDSHELL`, `DMFieldCreateShell()`, `DMFieldGetDegree()`

## Level

intermediate

## Location

src/dm/field/impls/shell/dmfieldshell.c

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