petsc-master 2020-08-25
Report Typos and Errors

DM Examples

DM objects are used to manage communication between the algebraic structures in PETSc (Vec and Mat) and mesh data structures in PDE-based (or other) simulations. See, for example, DMDACreate().

ex1.c: Define a simple field over the mesh
ex2.c: Read in a mesh and test whether it is valid
ex5.c: Load and save the mesh and fields to HDF5 and ExodusII
ex6.c: Spectral element access patterns with Plex
ex7.c: Create a Plex sphere from quads and create a P1 section
ex8.c: Element closure restrictions in tensor/lexicographic/spectral-element ordering using DMPlex
ex9.c: Evaluate the shape quality of a mesh
makefile