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#

Output Parameter#

  • ncdm - A new DM in which cell has 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#

src/dm/impls/plex/plextree.c


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