DMFieldShellSetEvaluate#

Register the routine that evaluates a DMFIELDSHELL at an arbitrary set of real-space points supplied as a Vec of coordinates.

Synopsis#

#include "petscdmfield.h" 
PetscErrorCode DMFieldShellSetEvaluate(DMField field, PetscErrorCode (*evaluate)(DMField field, Vec u, PetscDataType dtype, void *B, void *D, void *H))

Logically Collective

Input Parameters#

  • field - the DMField of type DMFIELDSHELL

  • evaluate - the evaluation callback

Calling sequence of evaluate#

  • field - the DMField of type DMFIELDSHELL

  • u - the points at which to evaluate the field, as a Vec of coordinates of size d x n

  • dtype - PETSC_SCALAR or PETSC_REAL

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

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

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

See Also#

DMField, DMFIELDSHELL, DMFieldCreateShell(), DMFieldEvaluate(), DMFieldShellSetEvaluateFE(), DMFieldShellSetEvaluateFV()

Level#

intermediate

Location#

src/dm/field/impls/shell/dmfieldshell.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