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

◆ nrecords() [2/2]

unsigned int pism::File::nrecords ( const std::string &  name,
const std::string &  std_name,
units::System::Ptr  unit_system 
) const

Get the number of records of a certain variable. Uses the length of an associated "time" dimension.

Definition at line 332 of file File.cc.

References pism::RuntimeError::add_context(), dimension_length(), dimension_type(), dimensions(), filename(), find_variable(), and pism::T_AXIS.