Discontinuous Galerkin Library
#include "dg/algorithm.h"

\( f(x_1,x_2) = 2\begin{cases} \frac{x_1x_2}{x_1+x_2} &\text{ if } x_1x_2 > 0 \\ 0 & \text { else } \end{cases} \) More...

Public Member Functions

template<class T >
DG_DEVICEoperator() (T x1, T x2) const
 

Detailed Description

\( f(x_1,x_2) = 2\begin{cases} \frac{x_1x_2}{x_1+x_2} &\text{ if } x_1x_2 > 0 \\ 0 & \text { else } \end{cases} \)

Note
The first case is the harmonic mean between x_1 and x_2

Member Function Documentation

◆ operator()()

template<class T >
DG_DEVICE T dg::VanLeer::operator() ( x1,
x2 
) const
inline

The documentation for this struct was generated from the following file: