23#ifndef GPU_SLOPE_LIMITERS_H
24#define GPU_SLOPE_LIMITERS_H
36 const Realf slope = (
abs(slope1) <
abs(slope2)) ? slope1 : slope2;
37 return (slope1 * slope2 <= (
Realf)(0.0)) ? (
Realf)(0.0) : slope;
41 const Realf slope = (
abs(slope1) >
abs(slope2)) ? slope1 : slope2;
42 return (slope1 * slope2 <= (
Realf)(0.0)) ? (
Realf)(0.0) : slope;
55 return maxmod(slope1, slope2);
83 return (a + b < (
Realf)(0.0)) ? -output : output;
113 slope_abs =
abs(slope);
static ARCH_DEV Realf maxmod(const Realf slope1, const Realf slope2)
static ARCH_DEV Realf slope_limiter(const Realf l, const Realf m, const Realf r)
static ARCH_DEV Realf slope_limiter_minmod_amr(const Realf l, const Realf m, const Realf r, const Realf a, const Realf b)
static ARCH_DEV Realf slope_limiter_sb(const Realf l, const Realf m, const Realf r)
static ARCH_DEV Realf minmod(const Realf slope1, const Realf slope2)
static ARCH_DEV Realf slope_limiter_amr(const Realf l, const Realf m, const Realf r, const Realf dx_left, const Realf dx_rght)
static ARCH_DEV Realf slope_limiter_mc(const Realf l, const Realf m, const Realf r)
static ARCH_DEV Realf slope_limiter_minmod(const Realf l, const Realf m, const Realf r)
static ARCH_HOSTDEV VecSimple< T > min(VecSimple< T > const &l, VecSimple< T > const &r)
static ARCH_HOSTDEV VecSimple< T > abs(const VecSimple< T > &l)