#include "petscdm.h" #include "petscdmlabel.h" #include "petscds.h" PetscErrorCode DMCopyLabels(DM dmA, DM dmB, PetscCopyMode mode, PetscBool all)Collective on dmA
dmA | - The DM object with initial labels | |
dmB | - The DM object with copied labels | |
mode | - Copy labels by pointers (PETSC_OWN_POINTER) or duplicate them (PETSC_COPY_VALUES) | |
all | - Copy all labels including "depth", "dim", and "celltype" (PETSC_TRUE) which are otherwise ignored (PETSC_FALSE) |
Note: This is typically used when interpolating or otherwise adding to a mesh