DMPlexTreeRefineCell#
Refine a single cell on rank 0 using the DM’s reference tree, producing a non-conforming mesh
Synopsis#
#include "petscdmplex.h"
/* refine a single cell on rank 0: this is not intended to provide good local refinement, only to create an example of
* a non-conforming mesh. Local refinement comes later */
PetscErrorCode DMPlexTreeRefineCell(DM dm, PetscInt cell, DM *ncdm)
Collective
Input Parameters#
dm - The
DMwith an attached reference tree (seeDMPlexSetReferenceTree())cell - The cell to be refined
Output Parameter#
ncdm - A new
DMin whichcellhas been split according to the reference tree
Note#
This routine is intended for testing and demonstration; it produces one example of a non-conforming mesh but is not a general local-refinement facility. Only rank 0 performs the refinement.
See Also#
DMPlex: Unstructured Grids, DM, DMPLEX, DMPlexSetReferenceTree(), DMPlexGetReferenceTree(), DMPlexSetTree()
Level#
developer
Location#
Index of all DMPlex routines
Table of Contents for all manual pages
Index of all manual pages