88 auto& statisticGenerated = blockLattice.template getField<descriptors::STATISTIC_GENERATED>();
89 auto& statistic = blockLattice.template getField<descriptors::STATISTIC>();
90 std::size_t nCells = thrust::reduce(thrust::device,
91 statisticGenerated[0].deviceData(),
92 statisticGenerated[0].deviceData() + blockLattice.
getNcells(),
95 T rhoSum = thrust::reduce(thrust::device,
96 statistic[0].deviceData(),
97 statistic[0].deviceData() + blockLattice.
getNcells(),
100 auto [maxU, uSqrSum] = thrust::reduce(thrust::device,
101 statistic[1].deviceData(),
102 statistic[1].deviceData() + blockLattice.
getNcells(),
112 blockLattice.getStatistics().incrementStats(statistics);
114 blockLattice.getStatistics().reset();