PISM, A Parallel Ice Sheet Model  stable v2.0.6 committed by Constantine Khrulev on 2023-01-23 15:14:38 -0900

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