DMTSSetBoundaryLocal#

set the function for essential boundary data for a local implicit function evaluation.

Synopsis#

#include "petscts.h" 
PetscErrorCode DMTSSetBoundaryLocal(DM dm, PetscErrorCode (*func)(DM, PetscReal, Vec, Vec, void *), void *ctx)

Logically Collective

Input Parameters#

  • dm - DM to associate callback with

  • func - local function evaluation

  • ctx - context for function evaluation

Notes#

func should set the essential boundary data for the local portion of the solution, as well its time derivative (if it is not NULL).

Vectors are initialized to zero before this function, so it is only needed for non homogeneous data.

This function is somewhat optional: boundary data could potentially be inserted by a function passed to DMTSSetIFunctionLocal(). The use case for this function is for discretizations with constraints (see DMGetDefaultConstraints()): this function inserts boundary values before constraint interpolation.

See Also#

TS: Scalable ODE and DAE Solvers, DM, TS, DMTSSetIFunction(), DMTSSetIJacobianLocal()

Level#

intermediate

Location#

src/ts/utils/dmlocalts.c

Examples#

src/ts/tutorials/ex53.c
src/ts/tutorials/ex11.c
src/ts/tutorials/ex18.c
src/ts/tutorials/ex48.c
src/ts/tutorials/ex46.c
src/ts/tutorials/ex45.c
src/ts/tutorials/ex77.c
src/ts/tutorials/ex30.c
src/ts/tutorials/ex76.c
src/ts/tutorials/ex47.c


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