DMFieldCreateDS#

Create a DMField of type DMFIELDDS for a PetscDS field on a DM.

Synopsis#

#include "petscdmfield.h" 
#include "petscdmfield.h" 
PetscErrorCode DMFieldCreateDS(DM dm, PetscInt fieldNum, Vec vec, DMField *field)

Collective

Input Parameters#

  • dm - the DM carrying the discretization

  • fieldNum - the field number within the DM’s PetscDS

  • vec - local vector holding the coefficients

Output Parameter#

  • field - the newly created DMField

Note#

Equivalent to DMFieldCreateDSWithDG() with dmDG set to NULL.

See Also#

DMField, DMFIELDDS, DMFieldCreateDSWithDG(), DMFieldCreate(), PetscDS

Level#

intermediate

Location#

src/dm/field/impls/ds/dmfieldds.c

Examples#

src/dm/field/tutorials/ex1.c


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