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

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