PetscDSSetObjective#
Set the pointwise objective function for a given test field
Synopsis#
#include "petscds.h"
PetscErrorCode PetscDSSetObjective(PetscDS ds, PetscInt f, PetscPointFn *obj)
Not Collective
Input Parameters#
ds - The
PetscDS
f - The test field number
obj - integrand for the test function term, see
PetscPointFn
Note#
We are using a first order FEM model for the weak form: \( \int_\Omega \phi\,\mathrm{obj}(u, u_t, \nabla u, x, t)\)
See Also#
PetscPointFn
, PetscDS
, PetscDSGetObjective()
, PetscDSSetResidual()
Level#
intermediate
Location#
Examples#
src/ts/tutorials/ex48.c
src/ts/tutorials/ex30.c
src/ts/utils/dmplexlandau/tutorials/ex1.c
src/snes/tutorials/ex11.c
src/snes/tutorials/ex8.c
src/ts/utils/dmplexlandau/tutorials/ex2.c
src/snes/tutorials/ex69.c
src/snes/tutorials/ex13.c
Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages