:orphan:
# DMPlexEqual
Determine if two `DM` have the same topology 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexEqual(DM dmA, DM dmB, PetscBool *equal)
```
Not Collective


## Input Parameters

- ***dmA -*** A `DMPLEX` object
- ***dmB -*** A `DMPLEX` object



## Output Parameter

- ***equal -*** `PETSC_TRUE` if the topologies are identical





## Note
We are not solving graph isomorphism, so we do not permute.


## See Also
 [](ch_unstructured), `DM`, `DMPLEX`, `DMPlexGetCone()`

## Level
intermediate

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/tutorials/ex11.c.html">src/dm/impls/plex/tutorials/ex11.c</A><BR>


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


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