# DMPlexMetricCreateUniform
Construct a uniform isotropic metric 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexMetricCreateUniform(DM dm, PetscInt f, PetscReal alpha, Vec *metric)
```

## Input parameters

- ***dm     -*** The DM
- ***f      -*** The field number to use
- ***alpha  -*** Scaling parameter for the diagonal



## Output parameter

- ***metric -*** The uniform metric




Note: In this case, the metric is constant in space and so is only specified for a single vertex.


## See Also
 `DMPlexMetricCreate()`, `DMPlexMetricCreateIsotropic()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexmetric.c.html#DMPlexMetricCreateUniform">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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
