petsc-3.4.4 2014-03-13

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 VecView() contour plotting for 2d DMDAs
ex2.c: Tests DMDAGlobalToNaturalAllCreate() using contour plotting for 2d DMDAs
ex3.c: Tests DMCreateInterpolation() for nonuniform DMDA coordinates
ex4.c: Demonstrates various vector routines for DMDA
ex5.c: Tests DMDAGetElements() and VecView() contour plotting for 2d DMDAs
ex6.c: Demonstrates using 3 DMDA's to manage a slightly non-trivial grid
ex7.c: Demonstrates using PetscViewerSetFormat(viewer,PETSC_FORMAT_BINARY_MATLAB)\n\n
ex8.c: Tests imbedding DMComposites inside DMComposites
ex9.c: Demonstrates HD5 vector input/ouput\n\n
ex10.c: Test to write HDF5 file from PETSc DMDA Vec
ex12.c: Tests DMGetGlobalVector() and DMRestoreGlobalVector()
ex51.c: Tests DMDAVecGetArrayDOF()\n
ex65dm.c: Tests coarsening with DM