Memosa-FVM  0.2
DefaultLimiter Struct Reference

#include <Limiters.h>

Public Member Functions

template<class T >
operator() (const T &a, const T &b) const
 

Detailed Description

Definition at line 10 of file Limiters.h.

Member Function Documentation

template<class T >
T DefaultLimiter::operator() ( const T &  a,
const T &  b 
) const
inline

Definition at line 13 of file Limiters.h.

14  {
15  /*
16  if (b < T(2.0)*a)
17  return (NumTypeTraits<T>::getUnity());
18 
19  const T eps(1e-16);
20  const T c = b*b + T(4.)*a*a;
21  return ((b*c+eps) / (b*b*b + a*c + eps));
22  */
23  }

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