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

◆ add() [1/2]

void pism::Vars::add ( const array::Array v)

Add an array::Array to the dictionary.

Adds standard_name if present, otherwise uses short_name.

This code will only work for array::Arrays with dof == 1.

Definition at line 68 of file Vars.cc.

References pism::RuntimeError::formatted(), pism::array::Array::get_name(), pism::VariableMetadata::has_attribute(), m_standard_names, m_variables, pism::array::Array::metadata(), and PISM_ERROR_LOCATION.