HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
LimiterVanLeer.c
Go to the documentation of this file.
1
6
#include <
mathfunctions.h
>
7
#include <
limiters.h
>
8
17
double
LimiterVanLeer
(
18
double
r
19
)
20
{
21
double
retval = (r+
absolute
(r)) / (1.0+
absolute
(r));
22
return
retval;
23
}
limiters.h
Definitions for limiter functions used in MUSCL-type reconstruction schemes.
mathfunctions.h
Contains function definitions for common mathematical functions.
LimiterVanLeer
double LimiterVanLeer(double)
Definition:
LimiterVanLeer.c:17
absolute
#define absolute(a)
Definition:
math_ops.h:32