/home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/discretization/FV/limiter/central_limiter.hh Source File#

DiFfRG: /home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/discretization/FV/limiter/central_limiter.hh Source File
DiFfRG
Discretization Framework for functional Renormalization Group flows
central_limiter.hh
Go to the documentation of this file.
1#pragma once
2
4
5namespace DiFfRG
6{
7 namespace def
8 {
18 {
19 public:
20 template <typename NumberType> static NumberType slope_limit(const NumberType &du_1, const NumberType &du_2)
21 {
22 return NumberType(0.5) * (du_1 + du_2);
23 }
24 };
25 static_assert(HasSlopeLimiter<CentralLimiter>);
26
27 } // namespace def
28} // namespace DiFfRG
Unlimited central-difference "limiter" — returns the arithmetic mean of the two one-sided slopes.
Definition central_limiter.hh:18
static NumberType slope_limit(const NumberType &du_1, const NumberType &du_2)
Definition central_limiter.hh:20
Definition complex_math.hh:10