#include "petscdmplex.h" PetscErrorCode DMPlexGetRefinementFunction(DM dm, PetscErrorCode (**refinementFunc)(const PetscReal [], PetscReal *))
Note: The calling sequence is refinementFunc(coords, limit)
coords - Coordinates of the current point, usually a cell centroid
limit - The maximum cell volume for a cell containing this point