Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.1-cd005eec8 committed by Constantine Khrulev on 2025-03-07
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

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