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

Input Parameter#

  • dm - The DM

Options Database Key#

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

Developer Note#

The name of this function is wrong. Create functions always return the created object as one of the arguments.

See Also#

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

Level#

intermediate

Location#

src/dm/interface/dm.c

Examples#

src/snes/tutorials/ex56.c
src/snes/tutorials/ex17.c
src/snes/tutorials/ex13.c
src/snes/tutorials/ex69.c
src/snes/tutorials/ex23.c
src/snes/tutorials/ex36.c
src/snes/tutorials/ex20.c
src/snes/tutorials/ex76.c
src/snes/tutorials/ex11.c
src/snes/tutorials/ex77.c


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