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

◆ define_time() [2/2]

void pism::io::define_time ( const File file,
const std::string &  name,
const std::string &  calendar,
const std::string &  units,
units::System::Ptr  unit_system 
)

Define a time dimension and the corresponding coordinate variable. Does nothing if the time variable is already present.

Definition at line 223 of file io_helpers.cc.

References pism::RuntimeError::add_context(), pism::calendar(), define_dimension(), pism::File::name(), PISM_UNLIMITED, and pism::File::variable_exists().