PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800

◆ 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().