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

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