PetscDSSetExactSolution#
Set the pointwise exact solution function for a given test field
Synopsis#
#include "petscds.h"
PetscErrorCode PetscDSSetExactSolution(PetscDS prob, PetscInt f, PetscPointExactSolutionFn *sol, PetscCtx ctx)
Not Collective
Input Parameters#
prob - The
PetscDSf - The test field number
sol - solution function for the test fields, see
PetscPointExactSolutionFnctx - solution context or
NULL
See Also#
PetscDS, PetscPointExactSolutionFn, PetscDSGetExactSolution()
Level#
intermediate
Location#
Examples#
src/dm/dt/fe/tests/ex1.c
src/dm/dt/fe/tests/ex2.c
src/dm/dt/fe/tests/ex3.c
src/dm/dt/tests/ex10.c
src/dm/impls/plex/tests/ex39.c
src/dm/impls/plex/tests/ex73.c
src/snes/tutorials/ex12.c
src/snes/tutorials/ex13.c
src/snes/tutorials/ex17.c
src/snes/tutorials/ex20.c
Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages