13 std::string_view
const name)
19 if (c < warning_threshold)
53 "Clamped {:d} concentration value(s) more negative than the "
54 "warning threshold ({:g} mol/kgw) to zero across {:d} chemical "
55 "system(s) before speciation; worst: '{:s}' = {:g} mol/kgw.",
62 "PhreeqcIO: clamped {:d} negative concentration value(s) to zero "
63 "across {:d} chemical system(s) before speciation (total clamped: "
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
void WARN(fmt::format_string< Args... > fmt, Args &&... args)
std::string_view worst_component_name
aliases Component::name
std::size_t n_severe_values
total severe values clamped
std::size_t n_severe_cells
cells with a severe clamp
double clamp(double c, double warning_threshold, std::string_view name)
double worst_negative_value
ClampingStats & operator+=(ClampingStats const &other)
Folds another stats object into this accumulator (identity = {}).
double total_clamped_amount
void report(double warning_threshold) const
WARN for severe clamps, DBUG for silent noise clamps. No-op when empty.
std::size_t n_values
total values clamped
std::size_t n_cells
cells with any clamping