PISM, A Parallel Ice Sheet Model

◆ fletcher64()

uint64_t pism::IceModelVec::fletcher64 ( ) const

Compute a checksum of a vector.

The result depends on the number of processors used.

We assume that sizeof(double) == 2 * sizeof(uint32_t), i.e. double uses 64 bits.

Definition at line 1174 of file iceModelVec.cc.

References pism::fletcher64(), pism::petsc::VecArray::get(), pism::IceModelVec::Impl::grid, m_impl, PISM_CHK, pism::sum(), and vec().

Referenced by checksum().