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

◆ 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 299 of file File.cc.

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