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

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