PISM, A Parallel Ice Sheet Model 2.3.0-79cae578d committed by Constantine Khrulev on 2026-03-22
Loading...
Searching...
No Matches

◆ 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(), m_standard_names, m_variables, pism::array::Array::metadata(), and PISM_ERROR_LOCATION.