PISM, A Parallel Ice Sheet Model 2.3.0-79cae578d committed by Constantine Khrulev on 2026-03-22
Loading...
Searching...
No Matches

◆ 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 198 of file VariableMetadata.cc.

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