petsc-3.7.7 2017-09-25
Report Typos and Errors


set the function for essential boundary data for a local implicit function evaluation. It should set the essential boundary data for the local portion of the solution X, as well its time derivative X_t (if it is not NULL). Vectors are initialized to zero before this function, so it is only needed for non homogeneous data.


#include "petscts.h" 
PetscErrorCode DMTSSetBoundaryLocal(DM dm, PetscErrorCode (*func)(DM, PetscReal, Vec, Vec, void *), void *ctx)
Note that 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.

Logically Collective

Input Arguments

dm - DM to associate callback with
func - local function evaluation
ctx - context for function evaluation

See Also

DMTSSetIFunction(), DMTSSetIJacobianLocal()

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