Last change
on this file since 895 was
895,
checked in by mhnguyen, 8 years ago
|
Adding a new transformation: Reduce a domain to an axis
Test
+) On Curie
+) Tests pass and are correct
|
File size:
870 bytes
|
Line | |
---|
1 | /*! |
---|
2 | \file extract.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_EXTRACT_ALGORITHM_HPP__ |
---|
10 | #define __XIOS_REDUCTION_EXTRACT_ALGORITHM_HPP__ |
---|
11 | |
---|
12 | #include "reduction.hpp" |
---|
13 | |
---|
14 | namespace xios { |
---|
15 | |
---|
16 | /*! |
---|
17 | \class CExtractReductionAlgorithm |
---|
18 | Interface for all reduction alogrithms. |
---|
19 | */ |
---|
20 | class CExtractReductionAlgorithm : public CReductionAlgorithm |
---|
21 | { |
---|
22 | public: |
---|
23 | CExtractReductionAlgorithm(); |
---|
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 | |
---|
30 | virtual ~CExtractReductionAlgorithm() {} |
---|
31 | |
---|
32 | public: |
---|
33 | static bool registerTrans(); |
---|
34 | |
---|
35 | protected: |
---|
36 | static CReductionAlgorithm* create(); |
---|
37 | }; |
---|
38 | |
---|
39 | } |
---|
40 | #endif // __XIOS_REDUCTION_EXTRACT_ALGORITHM_HPP__ |
---|
Note: See
TracBrowser
for help on using the repository browser.