# DMPlexCreateCellVertexFromFile
Create a DMPlex mesh from a simple cell-vertex file. 
## Synopsis
```
#include "petscdmplex.h"   
#include "petscdmplex.h"   
PetscErrorCode DMPlexCreateCellVertexFromFile(MPI_Comm comm, const char filename[], PetscBool interpolate, DM *dm)
```

- ***comm        -*** The MPI communicator
- ***filename    -*** Name of the .dat file
- ***interpolate -*** Create faces and edges in the mesh



## Output Parameter

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



## Note: The format is the simplest possible
```none
Ne
```
```none
v0 v1 ... vk
```
```none
Nv
```
```none
x y z marker
```




## See Also
 `DMPlexCreateFromFile()`, `DMPlexCreateMedFromFile()`, `DMPlexCreateGmsh()`, `DMPlexCreate()`

## Level
beginner

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexcreate.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)  
