PISM, A Parallel Ice Sheet Model 2.2.1-cd005eec8 committed by Constantine Khrulev on 2025-03-07
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

◆ allocate_storage()

void pism::IceCompModel::allocate_storage ( )
virtual

Allocate all Arrays defined in IceModel.

This procedure allocates the memory used to store model state, diagnostic and work vectors and sets metadata.

Default values should not be set here; please use set_vars_from_options().

All the memory allocated here is freed by Arrays' destructors.

Reimplemented from pism::IceModel.

Definition at line 153 of file iceCompModel.cc.

References pism::IceModel::allocate_storage(), pism::VariableMetadata::long_name(), m_strain_heating3_comp, pism::array::Array::metadata(), and pism::VariableMetadata::units().