#include "petscdmplex.h" #include "petscdmlabel.h" PetscErrorCode DMPlexCreateSubmesh(DM dm, DMLabel vertexLabel, PetscInt value, PetscBool markedFaces, DM *subdm)
dm | - The original mesh | |
vertexLabel | - The DMLabel marking points contained in the surface | |
value | - The label value to use | |
markedFaces | - PETSC_TRUE if surface faces are marked in addition to vertices, PETSC_FALSE if only vertices are marked |
subdm | - The surface mesh |
Note: This function produces a DMLabel mapping original points in the submesh to their depth. This can be obtained using DMPlexGetSubpointMap().