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

◆ 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 225 of file io_helpers.cc.

References pism::RuntimeError::add_context(), pism::calendar(), define_dimension(), pism::File::filename(), pism::File::find_variable(), and PISM_UNLIMITED.