PetscDSSetJacobian#
Set the pointwise Jacobian function for given test and basis fields
Synopsis#
#include "petscds.h"
PetscErrorCode PetscDSSetJacobian(PetscDS ds, PetscInt f, PetscInt g, PetscPointJacFn *g0, PetscPointJacFn *g1, PetscPointJacFn *g2, PetscPointJacFn *g3)
Not Collective
Input Parameters#
ds - The
PetscDSf - The test field number
g - The field number
g0 - integrand for the test and basis function term, see
PetscPointJacFng1 - integrand for the test function and basis function gradient term, see
PetscPointJacFng2 - integrand for the test function gradient and basis function term, see
PetscPointJacFng3 - integrand for the test function gradient and basis function gradient term, see
PetscPointJacFn
Note#
We are using a first order FEM model for the weak form:
See Also#
Level#
intermediate
Location#
Examples#
src/snes/tutorials/ex17.c
src/snes/tutorials/ex26.c
src/snes/tutorials/ex24.c
src/snes/tutorials/ex12.c
src/snes/tutorials/ex27.c
src/snes/tutorials/ex63.c
src/snes/tutorials/ex64.c
src/snes/tutorials/ex13.c
src/snes/tutorials/ex20.c
src/snes/tutorials/ex11.c
Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages