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_units()

static std::string pism::io::check_units ( const VariableMetadata variable,
const std::string &  input_units,
const Logger log 
)
static

Check if units are set in an input file and warn if they are not.

Definition at line 551 of file io_helpers.cc.

References pism::VariableMetadata::get_name(), pism::VariableMetadata::get_string(), and pism::Logger::message().

Referenced by read_spatial_variable(), and regrid_spatial_variable().