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