PetscDSSetRHSResidual#

Set the pointwise residual function for explicit timestepping for a given test field

Synopsis#

Not Collective

Input Parameters#

  • ds - The PetscDS

  • f - The test field number

  • f0 - integrand for the test function term, see PetscPointFn

  • f1 - integrand for the test function gradient term, see PetscPointFn

Note#

We are using a first order FEM model for the weak form: \( \int_\Omega \phi f_0(u, u_t, \nabla u, x, t) + \nabla\phi \cdot {\vec f}_1(u, u_t, \nabla u, x, t)\)

See Also#

PetscDS, PetscDSGetResidual()

Level#

intermediate

Location#

src/dm/dt/interface/dtds.c

Examples#

src/ts/tutorials/ex45.c


Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages