# DMPlexCreateExodus
Create a `DMPLEX` mesh from an ExodusII file ID. 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexCreateExodus(MPI_Comm comm, PetscInt exoid, PetscBool interpolate, DM *dm)
```
Collective


## Input Parameters

- ***comm  -*** The MPI communicator
- ***exoid -*** The ExodusII id associated with a exodus file and obtained using ex_open
- ***interpolate -*** Create faces and edges in the mesh



## Output Parameter

- ***dm  -*** The `DM` object representing the mesh





## See Also
 [](chapter_unstructured), `DM`, `PETSCVIEWEREXODUSII`, `DMPLEX`, `DMPLEX`, `DMCreate()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexexodusii.c.html#DMPlexCreateExodus">src/dm/impls/plex/plexexodusii.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexexodusii.c)


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