Skip to main content
Ctrl+K
PETSc 3.21.6 documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • DMCreateDS

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

See Also#

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

Level#

intermediate

Location#

src/dm/interface/dm.c

Examples#

src/snes/tutorials/ex20.c
src/dm/impls/swarm/tutorials/ex1f90.F90
src/snes/tutorials/ex23.c
src/snes/tutorials/ex76.c
src/dm/field/tutorials/ex1.c
src/snes/tutorials/ex26.c
src/dm/dt/dualspace/impls/lagrange/tutorials/ex2.c
src/dm/impls/swarm/tutorials/ex1.c
src/dm/impls/plex/tutorials/ex8.c
src/snes/tutorials/ex11.c


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

On this page
  • Synopsis
  • Input Parameter
  • Options Database Key
  • See Also
  • Level
  • Location
  • Examples
Edit on GitLab
Show Source

© Copyright 1991-2024, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2024-09-28T12:51:19-0500 (v3.21.6).