PetscWeakFormAddBdJacobian#
Append boundary Jacobian pointwise functions g0, g1, g2, and g3 to the lists for a given key in a PetscWeakForm
Synopsis#
#include "petscds.h"
PetscErrorCode PetscWeakFormAddBdJacobian(PetscWeakForm wf, DMLabel label, PetscInt val, PetscInt f, PetscInt g, PetscInt part, void (*g0)(PetscInt, PetscInt, PetscInt, const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], PetscReal, PetscReal, const PetscReal[], const PetscReal[], PetscInt, const PetscScalar[], PetscScalar[]), void (*g1)(PetscInt, PetscInt, PetscInt, const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], PetscReal, PetscReal, const PetscReal[], const PetscReal[], PetscInt, const PetscScalar[], PetscScalar[]), void (*g2)(PetscInt, PetscInt, PetscInt, const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], PetscReal, PetscReal, const PetscReal[], const PetscReal[], PetscInt, const PetscScalar[], PetscScalar[]), void (*g3)(PetscInt, PetscInt, PetscInt, const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], PetscReal, PetscReal, const PetscReal[], const PetscReal[], PetscInt, const PetscScalar[], PetscScalar[]))
Not Collective
Input Parameters#
wf - The
PetscWeakFormlabel - The label selecting the boundary region, or
NULLfor the entire boundaryval - The label value selecting the boundary region
f - The test field number
g - The trial field number
part - The equation part, or 0 if unused
g0 - The
g0boundary Jacobian pointwise function to append; aNULLis ignoredg1 - The
g1boundary Jacobian pointwise function to append; aNULLis ignoredg2 - The
g2boundary Jacobian pointwise function to append; aNULLis ignoredg3 - The
g3boundary Jacobian pointwise function to append; aNULLis ignored
See Also#
PetscWeakForm, PetscWeakFormSetBdJacobian(), PetscWeakFormGetBdJacobian(), PetscWeakFormAddJacobian()
Level#
intermediate
Location#
src/dm/dt/interface/dtweakform.c
Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages