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

DMPlexCreateBoxMesh

Creates a mesh on the tensor product of unit intervals (box) using simplices.

Synopsis

#include "petscdmplex.h"   
PetscErrorCode DMPlexCreateBoxMesh(MPI_Comm comm, PetscInt dim, PetscInt numFaces, PetscBool interpolate, DM *dm)
Collective on MPI_Comm

Input Parameters

comm - The communicator for the DM object
dim - The spatial dimension
numFaces - Number of faces per dimension
interpolate - Flag to create intermediate mesh pieces (edges, faces)

Output Parameter

dm -The DM object

Keywords

DM, create

See Also

DMPlexCreateHexBoxMesh(), DMSetType(), DMCreate()

Level:beginner
Location:
src/dm/impls/plex/plexcreate.c
Index of all DMPLEX routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/dm/impls/plex/examples/tutorials/ex1.c.html
src/dm/impls/plex/examples/tutorials/ex2.c.html
src/dm/impls/plex/examples/tutorials/ex1f90.F90.html
src/snes/examples/tutorials/ex12.c.html
src/snes/examples/tutorials/ex62.c.html
src/snes/examples/tutorials/ex77.c.html
src/ts/examples/tutorials/ex11.c.html