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

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