HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
LimiterMinMod.c
Go to the documentation of this file.
1
6
#include <
mathfunctions.h
>
7
#include <
limiters.h
>
8
16
double
LimiterMinMod
(
17
double
r
18
)
19
{
20
double
retval =
max
(0.0,
min
(1.0,r));
21
return
retval;
22
}
mathfunctions.h
Contains function definitions for common mathematical functions.
min
#define min(a, b)
Definition:
math_ops.h:14
LimiterMinMod
double LimiterMinMod(double r)
Definition:
LimiterMinMod.c:16
limiters.h
Definitions for limiter functions used in MUSCL-type reconstruction schemes.
max
#define max(a, b)
Definition:
math_ops.h:18