petsc-3.11.4 2019-09-28
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: Solve a toy 1D problem on a staggered grid
ex2.c: Solve a toy 2D problem on a staggered grid\n\n
ex3.c: Solve a toy 3D problem on a staggered grid\n\n
ex4.c: Solves the incompressible, variable viscosity Stokes equation in 2D driven by buouyancy variations