#include "petscdmplex.h" #include "petscdmlabel.h" PetscErrorCode DMPlexCreateCohesiveSubmesh(DM dm, PetscBool hasLagrange, const char label[], PetscInt value, DM *subdm)
dm | - The original mesh | |
hasLagrange | - The mesh has Lagrange unknowns in the cohesive cells | |
label | - A label name, or NULL | |
value | - A label value |
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().