PetscWeakFormAddResidual#

Append residual pointwise functions f0 and f1 to the lists for a given key in a PetscWeakForm

Synopsis#

#include "petscds.h" 
PetscErrorCode PetscWeakFormAddResidual(PetscWeakForm wf, DMLabel label, PetscInt val, PetscInt f, PetscInt part, 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[]), 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 PetscWeakForm

  • label - The label selecting the mesh region, or NULL for the entire domain

  • val - The label value selecting the mesh region

  • f - The field number

  • part - The equation part, or 0 if unused

  • f0 - The f0 residual pointwise function to append; a NULL is ignored

  • f1 - The f1 residual pointwise function to append; a NULL is ignored

See Also#

PetscWeakForm, PetscWeakFormSetResidual(), PetscWeakFormGetResidual(), PetscWeakFormSetIndexResidual(), PetscWeakFormAddBdResidual()

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