petsc-3.4.5 2014-06-29

DMPlexCreateBoxMesh

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

Synopsis

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

Input Parameters

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

Output Parameter

dm -The DM object

Keywords

DM, create

See Also

DMSetType(), DMCreate()

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

Examples

src/snes/examples/tutorials/ex12.c.html
src/snes/examples/tutorials/ex31.c.html
src/snes/examples/tutorials/ex52.c.html
src/snes/examples/tutorials/ex62.c.html