petsc-3.6.4 2016-04-12
Report Typos and Errors


Extract a hypersurface from the mesh using vertices defined by a label


#include "petscdmplex.h"   
PetscErrorCode DMPlexCreateSubmesh(DM dm, DMLabel vertexLabel, PetscInt value, DM *subdm)

Input Parameters

dm - The original mesh
vertexLabel - The DMLabel marking vertices contained in the surface
value - The label value to use

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(), DMPlexGetLabel(), DMLabelSetValue()

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