Examples

swarm_ex2.c: Tests DMSwarm
ex22.c: Extract a 2D slice in natural ordering from a 3D vector, Command line options :
ex5.c: Tests DMDAGetElements() and VecView() contour plotting for 2d DMDAs.
ex13f90aux.F90:
swarm_ex3.c: Tests DMSwarm with DMShell
ex3.c: Tests DMCreateInterpolation() for nonuniform DMDA coordinates.
ex9.c: Demonstrates HDF5 vector input/output
ex1.c: Tests VecView() contour plotting for 2d DMDAs.
ex7.c: Demonstrates using PetscViewerPushFormat(viewer,PETSC_VIEWER_BINARY_MATLAB)
ex19.c:
ex14.c: Tests DMCreateDomainDecomposition.
ex20.c: DMSwarm-PIC demonstrator of inserting points into a cell DM
ex51.c: Tests DMDAVecGetArrayDOF()
ex13f90.F90:
ex15.c: Tests VecView() functionality with DMDA objects when using:"
ex25.c: Takes a patch of a large DMDA vector to one process.
ex26.c: Calculates moments for Gaussian functions.
ex6.c:
ex12.c: Tests DMGetGlobalVector() and DMRestoreGlobalVector().
ex11f90.F90:
ex2.c: Demonstrates Conway's Game of Life using a 2d DMDA.
ex4.c: Demonstrates various vector routines for DMDA.
ex10.c:
swarm_ex1.c: Tests DMSwarm
ex21.c: DMSwarm-PIC demonstrator of advecting points within cell DM defined by a DA or PLEX object