24#ifndef BLOCK_AVERAGE_2D_HH
25#define BLOCK_AVERAGE_2D_HH
32template <
typename T,
typename W>
40template <
typename T,
typename W>
43 for (
int i = 0; i < this->getTargetDim(); ++i) {
49 for (
int i = 0; i < this->getTargetDim()-1; ++i) {
50 output[i] /= output[this->getTargetDim()-1];
BlockAverage2D(BlockF2D< W > &f, BlockIndicatorF2D< T > &indicatorF)
bool operator()(W output[], const int input[]) override
represents all functors that operate on a cuboid in general, mother class of BlockLatticeF,...
Base block indicator functor (discrete)
BlockSum2D sums all components of f over a indicated subset.
bool operator()(W output[], const int input[]) override
std::string & getName()
read and write access to name
Top level namespace for all of OpenLB.