PetscWeakFormSetIndexResidual#
Set the residual pointwise functions f0 and f1 at the given indices for a given key in a PetscWeakForm
Synopsis#
#include "petscds.h"
PetscErrorCode PetscWeakFormSetIndexResidual(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[], 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[], PetscInt, const PetscScalar[], PetscScalar[]))
Not Collective
Input Parameters#
wf - The
PetscWeakFormlabel - The label selecting the mesh region, or
NULLfor the entire domainval - The label value selecting the mesh region
f - The field number
part - The equation part, or 0 if unused
i0 - The index at which to store
f0in thef0listf0 - The
f0residual pointwise function; aNULLis ignoredi1 - The index at which to store
f1in thef1listf1 - The
f1residual pointwise function; aNULLis ignored
See Also#
PetscWeakForm, PetscWeakFormSetResidual(), PetscWeakFormAddResidual(), PetscWeakFormGetResidual(), PetscWeakFormClearIndex()
Level#
intermediate
Location#
Examples#
src/ts/tutorials/ex76.c
src/snes/tutorials/ex23.c
src/snes/tutorials/ex17.c
Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages