petsc-3.13.6 2020-09-29
Report Typos and Errors

DMSetFromOptions

sets parameters in a DM from the options database

Synopsis

#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMSetFromOptions(DM dm)
Collective on dm

Input Parameter

dm -the DM object to set options for

Options Database

-dm_preallocate_only - Only preallocate the matrix for DMCreateMatrix(), but do not fill it with zeros
-dm_vec_type <type> - type of vector to create inside DM
-dm_mat_type <type> - type of matrix to create inside DM
-dm_is_coloring_type - <global or local>

DMPLEX Specific Checks

-dm_plex_check_symmetry - Check that the adjacency information in the mesh is symmetric - DMPlexCheckSymmetry()
-dm_plex_check_skeleton - Check that each cell has the correct number of vertices (only for homogeneous simplex or tensor meshes) - DMPlexCheckSkeleton()
-dm_plex_check_faces - Check that the faces of each cell give a vertex order this is consistent with what we expect from the cell type - DMPlexCheckFaces()
-dm_plex_check_geometry - Check that cells have positive volume - DMPlexCheckGeometry()
-dm_plex_check_pointsf - Check some necessary conditions for PointSF - DMPlexCheckPointSF()
-dm_plex_check_interface_cones - Check points on inter-partition interfaces have conforming order of cone points - DMPlexCheckInterfaceCones()
-dm_plex_check_all - Perform all the checks above

See Also

DMView(), DMCreateGlobalVector(), DMCreateInterpolation(), DMCreateColoring(), DMCreateMatrix(),
DMPlexCheckSymmetry(), DMPlexCheckSkeleton(), DMPlexCheckFaces(), DMPlexCheckGeometry(), DMPlexCheckPointSF(), DMPlexCheckInterfaceCones()

Level

intermediate

Location

src/dm/interface/dm.c

Examples

src/dm/impls/plex/tutorials/ex2.c.html
src/dm/impls/plex/tutorials/ex5.c.html
src/dm/impls/plex/tutorials/ex6.c.html
src/dm/impls/plex/tutorials/ex7.c.html
src/dm/impls/plex/tutorials/ex8.c.html
src/dm/impls/forest/tutorials/ex1.c.html
src/dm/tutorials/ex1.c.html
src/dm/tutorials/ex3.c.html
src/dm/tutorials/ex4.c.html
src/dm/tutorials/ex5.c.html
src/dm/tutorials/ex7.c.html

Implementations

DMSetFromOptions_DA in src/dm/impls/da/dacreate.c
DMSetFromOptions_Forest in src/dm/impls/forest/forest.c
DMSetFromOptions_pforest in src/dm/impls/forest/p4est/pforest.c
DMSetFromOptions_Moab in src/dm/impls/moab/dmmoab.cxx
DMSetFromOptions_Network in src/dm/impls/network/networkcreate.c
DMSetFromOptions_Patch in src/dm/impls/patch/patchcreate.c
DMSetFromOptions_NonRefinement_Plex in src/dm/impls/plex/plexcreate.c
DMSetFromOptions_Plex in src/dm/impls/plex/plexcreate.c
DMSetFromOptions_Stag in src/dm/impls/stag/stag.c

Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages