petsc-3.14.6 2021-03-30
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
ex5.c:
ex6.c: Tests various 3-dimensional DMDA routines
ex7.c: Tests DMLocalToLocalxxx() for DMDA
ex8.c: Test parallel ruotines for GLVis\n\n
ex9.c: Tests DMCreateMatrix for DMComposite
ex11.c: Tests various 2-dimensional DMDA routines
ex12.c: Solves the one dimensional heat equation
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
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 DMLocalToGlobal() for dof > 1\n\n
ex25.c: Tests DMLocalToGlobal() 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
ex44.c: Tests various DMComposite routines
ex45.c:
ex46.c: Tests DMGetCompatibility() with a 3D DMDA
ex47.c: Test VTK structured grid (
ex48.c: Test VTK structured (
ex49.c: Test basic DMProduct operations
ex50.c: Test GLVis high-order support with DMDAs\n\n
ex51.c: Tests DMDAGlobalToNaturalAllCreate() using contour plotting for 2d DMDAs
ex52.c: Tests periodic boundary conditions for DMDA1d with periodic boundary conditions
makefile