petsc-3.8.4 2018-03-24
Report Typos and Errors


Extract from a mesh with cohesive cells the hypersurface defined by one face of the cells. Optionally, a Label an be given to restrict the cells.


#include "petscdmplex.h"    
#include "petscdmlabel.h"   
PetscErrorCode DMPlexCreateCohesiveSubmesh(DM dm, PetscBool hasLagrange, const char label[], PetscInt value, DM *subdm)

Input Parameters

dm - The original mesh
hasLagrange - The mesh has Lagrange unknowns in the cohesive cells
label - A label name, or NULL
value - A label value

Output Parameter

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().

See Also

DMPlexGetSubpointMap(), DMPlexCreateSubmesh()

Index of all DMPLEX routines
Table of Contents for all manual pages
Index of all manual pages