Last change
on this file since 2285 was
1704,
checked in by yushan, 5 years ago
|
Introducing the new graph functionality. Attribute build_workflow_graph=.TRUE. is used in the field definition section in the xml file to enable the workflow graph of the field and other fields referecing to it. A more detailed document will be available soon on the graph fuctionality.
|
File size:
978 bytes
|
Rev | Line | |
---|
[888] | 1 | /*! |
---|
| 2 | \file min.hpp |
---|
| 3 | \author Ha NGUYEN |
---|
| 4 | \since 27 June 2016 |
---|
| 5 | \date 27 June 2016 |
---|
| 6 | |
---|
| 7 | \brief Min reduction |
---|
| 8 | */ |
---|
| 9 | #ifndef __XIOS_REDUCTION_MIN_ALGORITHM_HPP__ |
---|
| 10 | #define __XIOS_REDUCTION_MIN_ALGORITHM_HPP__ |
---|
| 11 | |
---|
| 12 | #include "reduction.hpp" |
---|
| 13 | |
---|
| 14 | namespace xios { |
---|
| 15 | |
---|
| 16 | /*! |
---|
| 17 | \class CMinReductionAlgorithm |
---|
| 18 | Interface for all reduction alogrithms. |
---|
| 19 | */ |
---|
| 20 | class CMinReductionAlgorithm : public CReductionAlgorithm |
---|
| 21 | { |
---|
| 22 | public: |
---|
| 23 | CMinReductionAlgorithm(); |
---|
| 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 ~CMinReductionAlgorithm() {} |
---|
| 32 | |
---|
[1704] | 33 | virtual StdString getName() {return "Min reduction";} |
---|
| 34 | |
---|
[888] | 35 | public: |
---|
| 36 | static bool registerTrans(); |
---|
| 37 | |
---|
| 38 | protected: |
---|
| 39 | static CReductionAlgorithm* create(); |
---|
| 40 | }; |
---|
| 41 | |
---|
| 42 | } |
---|
| 43 | #endif // __XIOS_REDUCTION_MIN_ALGORITHM_HPP__ |
---|
Note: See
TracBrowser
for help on using the repository browser.