\( f(x_1, x_2, ...) = \begin{cases} \min(x_1, x_2, ...) &\text{ for } x_1, x_2, ... >0 \\ \max(x_1, x_2, ...) &\text{ for } x_1, x_2, ... <0 \\ 0 &\text{ else} \end{cases} \)
More...
\( f(x_1, x_2, ...) = \begin{cases} \min(x_1, x_2, ...) &\text{ for } x_1, x_2, ... >0 \\ \max(x_1, x_2, ...) &\text{ for } x_1, x_2, ... <0 \\ 0 &\text{ else} \end{cases} \)
Useful for Slope limiter
◆ operator()() [1/2]
template<class T >
T dg::MinMod::operator() |
( |
T |
x1, |
|
|
T |
x2 |
|
) |
| const |
|
inline |
◆ operator()() [2/2]
template<class T >
DG_DEVICE T dg::MinMod::operator() |
( |
T |
x1, |
|
|
T |
x2, |
|
|
T |
x3 |
|
) |
| const |
|
inline |
- Returns
- minmod(x1, x2, x3);
The documentation for this struct was generated from the following file: