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

◆ are_convertible()

bool pism::units::are_convertible ( const Unit u1,
const Unit u2 
)

Check if units are convertible without creating a converter.

Parameters
[in]u1first Unit instance
[in]u2second Unit instance
Returns
true if units are convertible, false otherwise

Definition at line 242 of file Units.cc.

References pism::units::Unit::is_convertible().

Referenced by pism::File::dimension_type(), pism::Time::parse_interval_length(), and pism::VariableMetadata::set_string().