PISM, A Parallel Ice Sheet Model

◆ state_counter()

int pism::IceModelVec::state_counter ( ) const

Get the object state counter.

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

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 124 of file iceModelVec.cc.

References m_impl, and pism::IceModelVec::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().