DMCreateDS#

Create the discrete systems for the DM based upon the fields added to the DM

Synopsis#

#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMCreateDS(DM dm)

Collective on dm

Input Parameter#

  • dm - The DM

Options Database Keys#

  • -dm_petscds_view - View all the PetscDS objects in this DM

Note#

If the label has a PetscDS defined, it will be replaced. Otherwise, it will be added to the DM.

See Also#

DMSetField, DMAddField(), DMGetDS(), DMGetCellDS(), DMGetRegionDS(), DMSetRegionDS()

Level#

intermediate

Location#

src/dm/interface/dm.c

Examples#

src/dm/impls/plex/tutorials/ex8.c.html
src/dm/impls/swarm/tutorials/ex1.c.html
src/dm/impls/swarm/tutorials/ex1f90.F90.html
src/dm/dt/dualspace/impls/lagrange/tutorials/ex2.c.html
src/dm/field/tutorials/ex1.c.html
src/snes/tutorials/ex12.c.html
src/snes/tutorials/ex13.c.html
src/snes/tutorials/ex17.c.html
src/snes/tutorials/ex20.c.html
src/snes/tutorials/ex23.c.html
src/snes/tutorials/ex24.c.html


Edit on GitLab

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