PetscSimplePointFunc#

A simple pointwise function

Synopsis#

PETSC_EXTERN_TYPEDEF typedef PetscErrorCode (*PetscSimplePointFunc)(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt r, PetscScalar u[], void *ctx);

Calling Sequence#

  • dim - The coordinate dimension of the original mesh (usually a surface)

  • time - The current time, or 0.

  • x - The location of the current normal, in the coordinate space of the original mesh

  • r - The layer number of this point

  • u - The user provides the computed normal on output

  • ctx - An optional user context

See Also#

DMPlexTransformExtrudeSetNormalFunction()

Level#

beginner

Location#

include/petscds.h

Examples#

src/snes/tutorials/ex71.c
src/snes/tutorials/ex36.c
src/ts/tutorials/ex46.c
src/ts/tutorials/ex76.c
src/ts/tutorials/ex47.c


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