PetscWeakFormSetIndexBdResidual#
Set the boundary residual pointwise functions f0 and f1 at the given indices for a given key in a PetscWeakForm
Synopsis#
#include "petscds.h"
PetscErrorCode PetscWeakFormSetIndexBdResidual(PetscWeakForm wf, DMLabel label, PetscInt val, PetscInt f, PetscInt part, PetscInt i0, void (*f0)(PetscInt, PetscInt, PetscInt, const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], PetscReal, const PetscReal[], const PetscReal[], PetscInt, const PetscScalar[], PetscScalar[]), PetscInt i1, void (*f1)(PetscInt, PetscInt, PetscInt, const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], 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 field number
part - The equation part, or 0 if unused
i0 - The index at which to store
f0in thef0listf0 - The
f0boundary residual pointwise function; aNULLis ignoredi1 - The index at which to store
f1in thef1listf1 - The
f1boundary residual pointwise function; aNULLis ignored
See Also#
PetscWeakForm, PetscWeakFormSetBdResidual(), PetscWeakFormAddBdResidual(), PetscWeakFormGetBdResidual(), PetscWeakFormClearIndex()
Level#
intermediate
Location#
Examples#
src/snes/tutorials/ex71.c
src/snes/tutorials/ex62.c
src/snes/tutorials/ex24.c
src/ts/tutorials/ex76.c
src/ts/tutorials/ex53.c
src/snes/tutorials/ex77.c
src/snes/tutorials/ex27.c
src/snes/tutorials/ex12.c
src/snes/tutorials/ex17.c
src/snes/tutorials/ex56.c
Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages