Last change
on this file since 5477 was
5477,
checked in by aclsce, 4 years ago
|
- Created CONFIG_DEVT directory
- First import of LMDZOR_V6.2_work_ENSEMBLES working configuration
|
File size:
957 bytes
|
Line | |
---|
1 | /*! |
---|
2 | \file sum.hpp |
---|
3 | \author Ha NGUYEN |
---|
4 | \since 27 June 2016 |
---|
5 | \date 27 June 2016 |
---|
6 | |
---|
7 | \brief Sum reduction |
---|
8 | */ |
---|
9 | #ifndef __XIOS_REDUCTION_SUM_ALGORITHM_HPP__ |
---|
10 | #define __XIOS_REDUCTION_SUM_ALGORITHM_HPP__ |
---|
11 | |
---|
12 | #include "reduction.hpp" |
---|
13 | |
---|
14 | namespace xios { |
---|
15 | |
---|
16 | /*! |
---|
17 | \class CSumReductionAlgorithm |
---|
18 | Interface for all reduction alogrithms. |
---|
19 | */ |
---|
20 | class CSumReductionAlgorithm : public CReductionAlgorithm |
---|
21 | { |
---|
22 | public: |
---|
23 | CSumReductionAlgorithm(); |
---|
24 | |
---|
25 | virtual void apply(const std::vector<std::pair<int,double> >& localIndex, |
---|
26 | const double* dataInput, |
---|
27 | CArray<double,1>& dataOut, |
---|
28 | std::vector<bool>& flagInitial, |
---|
29 | bool ignoreMissingValue, bool firstPass); |
---|
30 | |
---|
31 | virtual ~CSumReductionAlgorithm() {} |
---|
32 | |
---|
33 | virtual StdString getName() {return "Sum reduction";} |
---|
34 | |
---|
35 | public: |
---|
36 | static bool registerTrans(); |
---|
37 | |
---|
38 | protected: |
---|
39 | static CReductionAlgorithm* create(); |
---|
40 | }; |
---|
41 | |
---|
42 | } |
---|
43 | #endif // __XIOS_REDUCTION_SUM_ALGORITHM_HPP__ |
---|
Note: See
TracBrowser
for help on using the repository browser.