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 in pism::IceCompModel, and pism::IceRegionalModel.
Definition at line 185 of file IceModel.cc.
References pism::Geometry::cell_grounded_fraction, pism::Geometry::cell_type, pism::Geometry::ice_area_specific_volume, pism::Geometry::ice_surface_elevation, pism::Geometry::ice_thickness, pism::Geometry::latitude, pism::VariableMetadata::long_name(), pism::Geometry::longitude, m_basal_melt_rate, m_basal_yield_stress, m_bedtoptemp, m_config, m_geometry, m_grid, m_ice_thickness_bc_mask, m_model_state, m_velocity_bc_mask, m_velocity_bc_values, pism::array::Array::metadata(), pism::VariableMetadata::output_units(), pism::io::PISM_INT, pism::Geometry::sea_level_elevation, pism::array::Array::set(), pism::VariableMetadata::set_output_type(), pism::VariableMetadata::set_time_independent(), pism::VariableMetadata::standard_name(), and pism::VariableMetadata::units().
Referenced by pism::IceRegionalModel::allocate_storage(), pism::IceCompModel::allocate_storage(), and init().