Skip to main content

minmod

Function minmod 

Source
pub fn minmod(a: f64, b: f64) -> f64
Expand description

Minmod slope limiter: smallest slope among a and b with same sign.

Returns zero when a and b have opposite signs.