# DMMoabCreateMoab
Creates a DMMoab object, optionally from an instance and other data 
## Synopsis
```
#include "petscdmmoab.h"   
PetscErrorCode DMMoabCreateMoab(MPI_Comm comm, moab::Interface *mbiface, moab::Tag *ltog_tag, moab::Range *range, DM *dmb)
```
Collective


## Input Parameters

- ***comm -*** The communicator for the DMMoab object
- ***mbiface -*** (ptr to) the MOAB Instance; if passed in NULL, MOAB instance is created inside PETSc, and destroyed
along with the DMMoab
- ***ltog_tag -*** A tag to use to retrieve global id for an entity; if 0, will use GLOBAL_ID_TAG_NAME/tag
- ***range -*** If non-NULL, contains range of entities to which DOFs will be assigned



## Output Parameter

- ***dmb  -*** The DMMoab object





## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/moab/dmmoab.cxx.html#DMMoabCreateMoab">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)  
