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

◆ fletcher64()

uint64_t pism::array::Array::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 1144 of file Array.cc.

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

Referenced by checksum().