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

◆ state_counter()

int pism::array::Array::state_counter ( ) const

Get the object state counter.

This method returns the "revision number" of an Array.

It can be used to determine it a field was updated and if a certain computation needs to be re-done. One example is computing the smoothed bed for the SIA computation, which is only necessary if the bed deformation code fired.

See also inc_state_counter().

Definition at line 128 of file Array.cc.

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

Referenced by pism::hydrology::SteadyState::bootstrap_impl(), pism::energy::CHSystem::bootstrap_impl(), pism::energy::EnthalpyModel::bootstrap_impl(), pism::energy::TemperatureModel::bootstrap_impl(), pism::energy::CHSystem::initialize_impl(), pism::energy::EnthalpyModel::initialize_impl(), and pism::energy::TemperatureModel::initialize_impl().