DMFieldShellSetEvaluateFE#

Register the routine that evaluates a DMFIELDSHELL at finite-element quadrature points over a set of mesh points.

Synopsis#

#include "petscdmfield.h" 
PetscErrorCode DMFieldShellSetEvaluateFE(DMField field, PetscErrorCode (*evaluateFE)(DMField field, IS is, PetscQuadrature quad, PetscDataType dtype, void *B, void *D, void *H))

Logically Collective

Input Parameters#

  • field - the DMField of type DMFIELDSHELL

  • evaluateFE - the FE evaluation callback

Calling sequence of evaluateFE#

  • field - the DMField of type DMFIELDSHELL

  • is - the IS of mesh cells on which to evaluate the field

  • quad - the reference-cell PetscQuadrature supplying the evaluation points

  • dtype - PETSC_SCALAR or PETSC_REAL

  • B - array of field values at each quadrature point, or NULL

  • D - array of field reference derivatives at each quadrature point, or NULL

  • H - array of field reference Hessians at each quadrature point, or NULL

Note#

If the shell only supplies a generic DMFieldEvaluate() via DMFieldShellSetEvaluate(), pass DMFieldShellEvaluateFEDefault() here.

See Also#

DMField, DMFIELDSHELL, DMFieldCreateShell(), DMFieldEvaluateFE(), DMFieldShellEvaluateFEDefault(), DMFieldShellSetEvaluateFV()

Level#

intermediate

Location#

src/dm/field/impls/shell/dmfieldshell.c


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