# DMFieldGetDegree
Get the polynomial degree of a field when pulled back onto the reference element 
## Synopsis
```
#include "petscdmfield.h" 
#include "petscdmfield.h" 
PetscErrorCode DMFieldGetDegree(DMField field, IS cellIS, PetscInt *minDegree, PetscInt *maxDegree)
```
Not collective


## Input Parameters

- ***field -*** the `DMField` object
- ***cellIS -*** the index set of points over which we want know the invariance



## Output Parameters

- ***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`, `IS`, `DMFieldEvaluateFE()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/field/interface/dmfield.c.html#DMFieldGetDegree">src/dm/field/interface/dmfield.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/field/impls/da/dmfieldda.c.html#DMFieldGetDegree_DA">DMFieldGetDegree_DA in src/dm/field/impls/da/dmfieldda.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/field/impls/ds/dmfieldds.c.html#DMFieldGetDegree_DS">DMFieldGetDegree_DS in src/dm/field/impls/ds/dmfieldds.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/field/interface/dmfield.c)


[Index of all DM routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
