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

◆ allocate_storage()

void pism::IceRegionalModel::allocate_storage ( )
protectedvirtual

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 49 of file IceRegionalModel.cc.

References pism::IceModel::allocate_storage(), pism::combine(), pism::VariableMetadata::long_name(), pism::IceModel::m_log, pism::IceModel::m_model_state, m_no_model_mask, m_thk_stored, m_usurf_stored, pism::array::Array::metadata(), pism::io::PISM_INT, pism::array::Array::set(), pism::VariableMetadata::set_output_type(), pism::VariableMetadata::set_time_dependent(), and pism::VariableMetadata::units().