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
DMFieldof typeDMFIELDSHELLevaluate - the evaluation callback
Calling sequence of evaluate#
field - the
DMFieldof typeDMFIELDSHELLu - the points at which to evaluate the field, as a
Vecof coordinates of size d x ndtype -
PETSC_SCALARorPETSC_REALB - array of field values at each point, or
NULLD - array of field spatial derivatives at each point, or
NULLH - array of field spatial Hessians at each point, or
NULL
See Also#
DMField, DMFIELDSHELL, DMFieldCreateShell(), DMFieldEvaluate(), DMFieldShellSetEvaluateFE(), DMFieldShellSetEvaluateFV()
Level#
intermediate
Location#
Examples#
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages