# DMFieldGetType
Gets the DMField type name (as a string) from the DMField. 
## Synopsis
```
#include "petscdmfield.h" 
#include "petscdmfield.h" 
PetscErrorCode DMFieldGetType(DMField field, DMFieldType *type)
```
Not Collective


## Input Parameter

- ***field  -*** The DMField context



## Output Parameter

- ***type -*** The DMField type name





## See Also
 `DMFieldSetType()`

## Level
advanced

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


---
[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)  
