PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900

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

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