PetscWeakFormSetIndexBdJacobian#
Set the boundary Jacobian pointwise functions g0, g1, g2, and g3 at the given indices for a given key in a PetscWeakForm
Synopsis#
#include "petscds.h"
PetscErrorCode PetscWeakFormSetIndexBdJacobian(PetscWeakForm wf, DMLabel label, PetscInt val, PetscInt f, PetscInt g, PetscInt part, PetscInt i0, 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[]), PetscInt i1, 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[]), PetscInt i2, 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[]), PetscInt i3, 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
i0 - The index at which to store
g0in theg0listg0 - The
g0boundary Jacobian pointwise function; aNULLis ignoredi1 - The index at which to store
g1in theg1listg1 - The
g1boundary Jacobian pointwise function; aNULLis ignoredi2 - The index at which to store
g2in theg2listg2 - The
g2boundary Jacobian pointwise function; aNULLis ignoredi3 - The index at which to store
g3in theg3listg3 - The
g3boundary Jacobian pointwise function; aNULLis ignored
See Also#
PetscWeakForm, PetscWeakFormSetBdJacobian(), PetscWeakFormAddBdJacobian(), PetscWeakFormGetBdJacobian(), PetscWeakFormClearIndex()
Level#
intermediate
Location#
Examples#
src/snes/tutorials/ex62.c
src/snes/tutorials/ex77.c
Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages