:orphan:
# DMPlexMetricAverage3
Compute the unweighted average of three metrics 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexMetricAverage3(DM dm, Vec metric1, Vec metric2, Vec metric3, Vec metricAvg)
```

## Input Parameters

- ***dm         -*** The `DM`
- ***metric1    -*** The first metric to be averaged
- ***metric2    -*** The second metric to be averaged
- ***metric3    -*** The third metric to be averaged



## Output Parameter

- ***metricAvg  -*** The averaged metric





## See Also
 `DMPLEX`, `DMPlexMetricAverage()`, `DMPlexMetricAverage2()`

## Level
beginner

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


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