Memosa-FVM  0.2
superbee Struct Reference

#include <FluxLimiters.h>

Public Member Functions

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

Detailed Description

Definition at line 41 of file FluxLimiters.h.

Member Function Documentation

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

Definition at line 44 of file FluxLimiters.h.

References max(), and min().

45  {
46  if(b!=0.)
47  return max(0., max(min(1., 2.*a/b), min(2., a/b)));
48  }
double max(double x, double y)
Definition: Octree.cpp:18
double min(double x, double y)
Definition: Octree.cpp:23

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