Discontinuous Galerkin Library
#include "dg/algorithm.h"
dg::SlopeLimiter< Limiter > Struct Template Reference

\( \text{up}(v, g_m, g_0, g_p, h_m, h_p ) = \begin{cases} +h_m \Lambda( g_0, g_m) &\text{ if } v \geq 0 \\ -h_p \Lambda( g_p, g_0) &\text{ else} \end{cases} \) More...

Public Member Functions

 SlopeLimiter ()
 
 SlopeLimiter (Limiter l)
 
template<class T >
DG_DEVICEoperator() (T v, T gm, T g0, T gp, T hm, T hp) const
 

Detailed Description

template<class Limiter>
struct dg::SlopeLimiter< Limiter >

\( \text{up}(v, g_m, g_0, g_p, h_m, h_p ) = \begin{cases} +h_m \Lambda( g_0, g_m) &\text{ if } v \geq 0 \\ -h_p \Lambda( g_p, g_0) &\text{ else} \end{cases} \)

Template Parameters
LimiterAny two-dimensional functor
See also
VanLeer, MinMod

Constructor & Destructor Documentation

◆ SlopeLimiter() [1/2]

template<class Limiter >
dg::SlopeLimiter< Limiter >::SlopeLimiter ( )
inline

◆ SlopeLimiter() [2/2]

template<class Limiter >
dg::SlopeLimiter< Limiter >::SlopeLimiter ( Limiter  l)
inline

Member Function Documentation

◆ operator()()

template<class Limiter >
template<class T >
DG_DEVICE T dg::SlopeLimiter< Limiter >::operator() ( v,
gm,
g0,
gp,
hm,
hp 
) const
inline

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