PETSc version 3.17.5
Fix/Edit manual page

DMPlexIsSimplex

Is the first cell in this mesh a simplex?

Synopsis

#include "petscdmplex.h"   
PetscErrorCode DMPlexIsSimplex(DM dm, PetscBool *simplex)

Input Parameter

dm - The DMPlex object

Output Parameter

simplex - Flag checking for a simplex

Note: This just gives the first range of cells found. If the mesh has several cell types, it will only give the first. If the mesh has no cells, this returns PETSC_FALSE.

See Also

DMPlexGetSimplexOrBoxCells(), DMPlexGetCellType(), DMPlexGetHeightStratum(), DMPolytopeTypeGetNumVertices()

Level

intermediate

Location

src/dm/impls/plex/plex.c

Examples

src/dm/field/tutorials/ex1.c.html
src/snes/tutorials/ex12.c.html
src/snes/tutorials/ex62.c.html
src/snes/tutorials/ex77.c.html
src/ts/tutorials/ex46.c.html
src/ts/tutorials/ex48.c.html

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