PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900

◆ 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().