# DMMoabGetMaterialBlock
Get the material ID corresponding to the current entity of the DM Mesh 
## Synopsis
```
#include "petscdmmoab.h"   
PetscErrorCode DMMoabGetMaterialBlock(DM dm, const moab::EntityHandle ehandle, PetscInt *mat)
```
Collective


## Input Parameters

- ***dm -*** The DMMoab object
- ***ehandle -*** The element entity handle



## Output Parameter

- ***mat -*** The material ID for the current entity





## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/moab/dmmoab.cxx.html#DMMoabGetMaterialBlock">src/dm/impls/moab/dmmoab.cxx</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/moab/dmmoab.cxx)


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