PetscWeakFormSetBdResidual — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscWeakFormSetBdResidual

Set the lists of boundary residual pointwise functions `f0` and `f1` for a given key in a `PetscWeakForm`

## Synopsis

    #include "petscds.h"
    PetscErrorCode PetscWeakFormSetBdResidual(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[], 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[], const PetscReal[], PetscInt, const PetscScalar[], PetscScalar[]))

Not Collective

## Input Parameters

- wf - The `PetscWeakForm`

- label - The label selecting the boundary region, or `NULL` for the entire boundary

- val - The label value selecting the boundary region

- f - The field number

- part - The equation part, or 0 if unused

- n0 - The number of `f0` boundary pointwise functions to set

- f0 - The array of `f0` boundary residual pointwise functions, or `NULL` to clear the key

- n1 - The number of `f1` boundary pointwise functions to set

- f1 - The array of `f1` boundary residual pointwise functions, or `NULL` to clear the key

## See Also

`PetscWeakForm`, `PetscWeakFormGetBdResidual()`, `PetscWeakFormAddBdResidual()`, `PetscWeakFormSetResidual()`

## 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