PetscWeakFormGetResidual#
Retrieve the lists of residual pointwise functions f0 and f1 for a given key from a PetscWeakForm
Synopsis#
#include "petscds.h"
PetscErrorCode PetscWeakFormGetResidual(PetscWeakForm wf, DMLabel label, PetscInt val, PetscInt f, PetscInt part, PetscInt *n0, 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 *n1, 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
Output Parameters#
n0 - The number of
f0pointwise functions registered for this keyf0 - The array of
f0residual pointwise functionsn1 - The number of
f1pointwise functions registered for this keyf1 - The array of
f1residual pointwise functions
See Also#
PetscWeakForm, PetscWeakFormSetResidual(), PetscWeakFormAddResidual(), PetscWeakFormGetBdResidual()
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