petsc-3.7.3 2016-08-01
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: Tests various DM routines
ex2.c: Tests various 1-dimensional DMDA routines
ex3.c: Solves the 1-dimensional wave equation
ex4.c: Tests various 2-dimensional DMDA routines
ex6.c: Tests various 3-dimensional DMDA routines
ex7.c: Tests DMLocalToLocalxxx() for DMDA
ex8.c: Demonstrates generating a slice from a DMDA Vector
ex9.c: Tests DMCreateColoring() in 3d
ex10.c: Tests various 1-dimensional DMDA routines
ex11.c: Tests various 2-dimensional DMDA routines
ex12.c: Solves the one dimensional heat equation
ex12.m:
ex13.c: Tests loading DM vector from file
ex14.c: Tests saving DMDA vectors to files
ex15.c: Tests DMDA interpolation
ex16.c: Tests DMComposite routines
ex17.c: Tests DMDA interpolation for coarse DM on a subset of processors
ex19.c: Tests DMDA with variable multiple degrees of freedom per node
ex20.c: Tests DMDACreate3d() memory usage\n\n
ex21.c: Test DMCreateInjection() for mapping coordinates in 3D
ex22.c: Tests MatSetValuesBlockedStencil() in 3d
ex23.c: Tests VecView()/VecLoad() for DMDA vectors (this tests DMDAGlobalToNatural())
ex24.c: Tests DMDALocalToGlocal() for dof > 1\n\n
ex25.c: Tests DMDALocalToGlocal() for dof > 1\n\n
ex26.c: Tests error message in DMCreateColoring() with periodic boundary conditions
ex27.c: Test sequential USFFT interface on a uniform DMDA and compares the result to FFTW\n\n
ex28.c: Test sequential USFFT interface on a 3-dof field over a uniform DMDA and compares to the result of FFTW acting on a split version of the field\n\n
ex30.c: Tests DMSLICED operations\n\n
ex31.c: Tests MAIJ matrix for large DOF\n\n
ex32.c: Tests DMDA ghost coordinates\n\n
ex34.c: Test DMDAGetOwnershipRanges()\n
ex36.c: Checks the functionality of DMGetInterpolation() on deformed grids
ex37.c: VecView() with a DMDA1d vector and draw viewer
ex38.c: Tests DMGlobalToLocal() for 3d DA with stencil width of 2
ex39.c: Tests mirror boundary conditions in 1-d
ex40.c: Tests mirror boundary conditions in 2-d
ex41.c: Tests mirror boundary conditions in 3-d
ex42.c: Test VTK Rectilinear grid (
ex43.c: Demonstrates the DMLocalToLocal bug in PETSc 3
makefile