DMPlexTransformAdaptLabel#
Adapt a DMPLEX using a DMPlexTransform driven by a DMLabel marking cells to be refined or coarsened.
Synopsis#
#include "petscdmplextransform.h"
PetscErrorCode DMPlexTransformAdaptLabel(DM dm, PETSC_UNUSED Vec metric, DMLabel adaptLabel, PETSC_UNUSED DMLabel rgLabel, DM *rdm)
Collective
Input Parameters#
dm - the input
DMPLEXmetric - unused; present to conform to the
DMAdaptorlabel-based interfaceadaptLabel - a
DMLabelmarking cells withDM_ADAPT_REFINE,DM_ADAPT_COARSEN, etc.rgLabel - unused region-tag label; present to conform to the
DMAdaptorinterface
Output Parameter#
rdm - the adapted
DMPLEX
Note#
This routine is registered as the “cellrefiner” adaptor by DMGenerateRegisterAll() and is invoked through DMAdaptLabel().
See Also#
DMPLEX, DMPlexTransform, DMAdaptLabel(), DMPlexTransformApply(), DMPlexTransformCreate(), DMLabel
Level#
developer
Location#
src/dm/impls/plex/transform/interface/plextransform.c
Index of all DMPlex routines
Table of Contents for all manual pages
Index of all manual pages