PetscWeakFormSetIndexRiemannSolver#

Set a single Riemann solver pointwise function at the given index for a given key in a PetscWeakForm

Synopsis#

#include "petscds.h" 
PetscErrorCode PetscWeakFormSetIndexRiemannSolver(PetscWeakForm wf, DMLabel label, PetscInt val, PetscInt f, PetscInt part, PetscInt i, void (*r)(PetscInt, PetscInt, const PetscReal[], const PetscReal[], const PetscScalar[], const PetscScalar[], PetscInt, const PetscScalar[], PetscScalar[], void *))

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

  • i - The index into the list of Riemann solver pointwise functions for this key

  • r - The Riemann solver pointwise function to store at position i; a NULL is ignored

See Also#

PetscWeakForm, PetscWeakFormSetRiemannSolver(), PetscWeakFormGetRiemannSolver(), PetscWeakFormClearIndex()

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