Last change
on this file since 1611 was
1260,
checked in by ymipsl, 7 years ago
|
Buf fix in reduction. Missing value update was not set correctly
YM
|
File size:
900 bytes
|
Rev | Line | |
---|
[888] | 1 | /*! |
---|
| 2 | \file max.hpp |
---|
| 3 | \author Ha NGUYEN |
---|
| 4 | \since 27 June 2016 |
---|
| 5 | \date 27 June 2016 |
---|
| 6 | |
---|
| 7 | \brief Max reduction |
---|
| 8 | */ |
---|
| 9 | #ifndef __XIOS_REDUCTION_MAX_ALGORITHM_HPP__ |
---|
| 10 | #define __XIOS_REDUCTION_MAX_ALGORITHM_HPP__ |
---|
| 11 | |
---|
| 12 | #include "reduction.hpp" |
---|
| 13 | |
---|
| 14 | namespace xios { |
---|
| 15 | |
---|
| 16 | /*! |
---|
| 17 | \class CMaxReductionAlgorithm |
---|
| 18 | Interface for all reduction alogrithms. |
---|
| 19 | */ |
---|
| 20 | class CMaxReductionAlgorithm : public CReductionAlgorithm |
---|
| 21 | { |
---|
| 22 | public: |
---|
| 23 | CMaxReductionAlgorithm(); |
---|
| 24 | |
---|
| 25 | virtual void apply(const std::vector<std::pair<int,double> >& localIndex, |
---|
| 26 | const double* dataInput, |
---|
| 27 | CArray<double,1>& dataOut, |
---|
[1158] | 28 | std::vector<bool>& flagInitial, |
---|
[1260] | 29 | bool ignoreMissingValue, bool firstPass); |
---|
[888] | 30 | |
---|
| 31 | virtual ~CMaxReductionAlgorithm() {} |
---|
| 32 | |
---|
| 33 | public: |
---|
| 34 | static bool registerTrans(); |
---|
| 35 | |
---|
| 36 | protected: |
---|
| 37 | static CReductionAlgorithm* create(); |
---|
| 38 | }; |
---|
| 39 | |
---|
| 40 | } |
---|
| 41 | #endif // __XIOS_REDUCTION_MAX_ALGORITHM_HPP__ |
---|
Note: See
TracBrowser
for help on using the repository browser.