DMFieldShellSetEvaluateFV#

Register the routine that evaluates a DMFIELDSHELL as cell averages over a set of mesh cells.

Synopsis#

#include "petscdmfield.h" 
PetscErrorCode DMFieldShellSetEvaluateFV(DMField field, PetscErrorCode (*evaluateFV)(DMField field, IS is, PetscDataType dtype, void *B, void *D, void *H))

Logically Collective

Input Parameters#

  • field - the DMField of type DMFIELDSHELL

  • evaluateFV - the FV evaluation callback

Calling sequence of evaluateFV#

  • field - the DMField of type DMFIELDSHELL

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

  • dtype - PETSC_SCALAR or PETSC_REAL

  • B - array of cell-averaged field values, or NULL

  • D - array of cell-averaged field derivatives, or NULL

  • H - array of cell-averaged field Hessians, or NULL

Note#

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

See Also#

DMField, DMFIELDSHELL, DMFieldCreateShell(), DMFieldEvaluateFV(), DMFieldShellEvaluateFVDefault(), DMFieldShellSetEvaluateFE()

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