Minmod Struct ReferenceΒΆ

adc_cpp: pops::Minmod Struct Reference
adc_cpp 0.3.0
Model-free C++23 core for coupled hyperbolic-elliptic systems on adaptive (AMR) meshes, with MPI and GPU (Kokkos) backends

minmod limiter: TVD (Total Variation Diminishing), 2 ghosts, order 2 in smooth regions. More...

#include <reconstruction.hpp>

+ Collaboration diagram for pops::Minmod:

Public Member Functions

POPS_HD Real operator() (Real a, Real b) const
 

Static Public Attributes

static constexpr int n_ghost = 2
 

Detailed Description

minmod limiter: TVD (Total Variation Diminishing), 2 ghosts, order 2 in smooth regions.

Returns min(|a|,|b|)*sgn(a) if a and b have the same sign, 0 otherwise. Implemented without std::min / std::abs to stay device-safe (no <cmath> required). Order 1 locally at extrema (clips smooth peaks): prefer VanLeer when smooth growth modes must survive.

Member Function Documentation

◆ operator()()

POPS_HD Real pops::Minmod::operator() ( Real  a,
Real  b 
) const
inline

Member Data Documentation

◆ n_ghost

constexpr int pops::Minmod::n_ghost = 2
staticconstexpr

The documentation for this struct was generated from the following file: