void MultiBlock3D::evaluateStatistics() { std::vector<plint> const& blocks = getLocalInfo().getBlocks(); for (pluint iBlock=0; iBlock<blocks.size(); ++iBlock) { plint blockId = blocks[iBlock]; getComponent(blockId).evaluateStatistics(); } if (isInternalStatisticsOn()) reduceStatistics(); }
/* ************************************************************************ * Constructor. ************************************************************************ */ BoxLevelStatistics::BoxLevelStatistics( const BoxLevel& box_level): d_mpi(box_level.getMPI()), d_dim(box_level.getDim()) { if (!box_level.isInitialized()) { TBOX_ERROR("BoxLevelStatistics requires an initialized BoxLevel."); } computeLocalBoxLevelStatistics(box_level); reduceStatistics(); }
/// Compute statistics. For each level, first compute their statistics, then rescale and join everything void MultiGrid2D::evaluateStatistics(){ // join the stats if (statisticsOn){ reduceStatistics(); } }