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

◆ time_dimension()

std::string pism::io::time_dimension ( units::System::Ptr  unit_system,
const File file,
const std::string &  variable_name 
)

Return the name of the time dimension corresponding to a NetCDF variable.

Returns an empty string if this variable is time-independent.

Definition at line 1343 of file io_helpers.cc.

References pism::File::dimension_type(), pism::File::dimensions(), and pism::T_AXIS.

Referenced by pism::array::Forcing::init(), and pism::hydrology::SteadyState::init_time().