示例#1
0
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();
}
示例#2
0
/*
 ************************************************************************
 * 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();
}
示例#3
0
/// Compute statistics. For each level, first compute their statistics, then rescale and join everything
void MultiGrid2D::evaluateStatistics(){
    // join the stats
    if (statisticsOn){
        reduceStatistics();
    }
}