#include "petscdmplex.h" PetscErrorCode DMPlexMetricCreateIsotropic(DM dm, PetscInt f, Vec indicator, Vec *metric)
dm | - The DM | |
f | - The field number to use | |
indicator | - The error indicator |
metric | - The isotropic metric |
It is assumed that the DM is comprised of simplices.
The indicator needs to be a scalar field. If it is not defined vertex-wise, then it is projected appropriately.