Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

◆ check_range()

void pism::VariableMetadata::check_range ( const std::string &  filename,
double  min,
double  max 
) const

Check if the range [min, max] is a subset of [valid_min, valid_max].

Throws an exception if this check failed.

Definition at line 87 of file VariableMetadata.cc.

References pism::RuntimeError::formatted(), get_name(), get_number(), get_string(), has_attribute(), PISM_ERROR_LOCATION, and units().

Referenced by pism::array::check_range().