Skip to main content
`Ctrl`+`K`

# PetscRiemannFn

A prototype of a pointwise function that can be passed to, for example, `PetscDSSetRiemannSolver()`

## Synopsis

    typedef void PetscRiemannFn(PetscInt dim, PetscInt Nf, const PetscReal x[], const PetscReal n[], const PetscScalar uL[], const PetscScalar uR[], PetscInt numConstants, const PetscScalar constants[], PetscScalar flux[], void *ctx);

## Calling Sequence

- dim - the coordinate dimension

- Nf - The number of fields

- x - The coordinates at a point on the interface

- n - The normal vector to the interface

- uL - The state vector to the left of the interface

- uR - The state vector to the right of the interface

- numConstants - number of constant parameters

- constants - constant parameters

- flux - output array of flux through the interface

- ctx - optional user context

## See Also

`PetscPointFn`, `PetscDSSetRiemannSolver()`, `PetscDSGetRiemannSolver()`

## Level

beginner

## Location

include/petscdstypes.h

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