DMPlexMetricAverage3 — PETSc 3.21.4 documentation

Skip to main content
`Ctrl`+`K`

# 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

src/dm/impls/plex/plexmetric.c

Index of all DMPlex routines
Table of Contents for all manual pages
Index of all manual pages