PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900

◆ 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 67 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.