PETSc version 3.15.5
DMStagStencil
data structure representing a degree of freedom on a DMStag grid
Synopsis
typedef struct {
DMStagStencilLocation loc;
PetscInt i,j,k,c;
} DMStagStencil;
Data structure (C struct), analogous to describing a degree of freedom associated with a DMStag object,
in terms of a global element index in each of up to three directions, a "location" as defined by DMStagStencilLocation,
and a component number. Primarily for use with DMStagMatSetValuesStencil() (compare with use of MatStencil with MatSetValuesStencil()).
Note
The component (c) field must always be set, even if there is a single component at a given location (in which case c should be set to 0).
See Also
DMSTAG, DMStagMatSetValuesStencil(), DMStagVecSetValuesStencil(), DMStagStencilLocation, DMStagSetStencilWidth(), DMStagSetStencilType(), DMStagVecGetValuesStencil()
Level
beginner
Location
src/dm/impls/stag/../../../../include/petscdmstag.h
Examples
src/dm/impls/stag/tutorials/ex4.c.html
Index of all DMSTAG routines
Table of Contents for all manual pages
Index of all manual pages