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

◆ get_name()

const std::string & pism::array::Array::get_name ( ) const

Get the name of an Array object.

This is the name used to refer to this object in PISM (e.g. via the Vars class), not the name of the corresponding NetCDF variable. (The problem is that one Array instance may correspond to several NetCDF variables. Use metadata(...).get_name() to get the name of NetCDF variables an Array is saved to.)

Definition at line 383 of file Array.cc.

References m_impl, and pism::array::Array::Impl::name.

Referenced by pism::Vars::add(), pism::details::allocate_layer_thickness(), pism::DiagAverageRate< M >::DiagAverageRate(), pism::array::Scalar::duplicate(), pism::array::Vector::duplicate(), pism::array::Array3D::duplicate(), pism::DiagAverageRate< M >::init_impl(), pism::array::Forcing::init_periodic_data(), regrid(), pism::array::Forcing::update(), view(), pism::IceModel::view_field(), and write_impl().