9 #ifndef __XIOS_REDUCTION_AVERAGE_ALGORITHM_HPP__
10 #define __XIOS_REDUCTION_AVERAGE_ALGORITHM_HPP__
25 virtual void apply(
const std::vector<std::pair<int,double> >& localIndex,
26 const double* dataInput,
28 std::vector<bool>& flagInitial,
29 bool ignoreMissingValue,
bool firstPass);
47 #endif // __XIOS_REDUCTION_AVERAGE_ALGORITHM_HPP__
static bool registerTrans()
Parent class for all reduction.
CArray< double, 1 > weights_
CAverageReductionAlgorithm()
virtual void updateData(CArray< double, 1 > &dataOut)
Update local data In some case (e.g average) we need global information (e.g weights) then update dat...
Interface for all reduction alogrithms.
static CReductionAlgorithm * create()
virtual ~CAverageReductionAlgorithm()
virtual void apply(const std::vector< std::pair< int, double > > &localIndex, const double *dataInput, CArray< double, 1 > &dataOut, std::vector< bool > &flagInitial, bool ignoreMissingValue, bool firstPass)
Apply a reduction operation on local data.
Interface for all reduction alogrithms.