:orphan: # 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 `DMPLEX`, `DMPlexMetricCreate()`, `DMPlexMetricCreateIsotropic()` ## Level beginner ## Location src/dm/impls/plex/plexmetric.c --- [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)