Last change
on this file since 2267 was
2267,
checked in by ymipsl, 3 years ago
|
tracking memory leak
Elements, views, and connectors are now managed with shared pointer.
YM
|
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Rev | Line | |
---|
[1999] | 1 | #ifndef __XIOS_ALGORITHM_TRANSFORMATION_REDUCE_HPP__ |
---|
| 2 | #define __XIOS_ALGORITHM_TRANSFORMATION_REDUCE_HPP__ |
---|
| 3 | |
---|
| 4 | #include "generic_algorithm_transformation.hpp" |
---|
| 5 | #include "array_new.hpp" |
---|
| 6 | #include "local_view.hpp" |
---|
| 7 | #include "transform_connector.hpp" |
---|
| 8 | #include "reduce_transform_connector.hpp" |
---|
| 9 | |
---|
| 10 | namespace xios |
---|
| 11 | { |
---|
| 12 | |
---|
| 13 | class CAlgorithmTransformationReduce : public CGenericAlgorithmTransformation |
---|
| 14 | { |
---|
| 15 | public: |
---|
| 16 | |
---|
| 17 | CAlgorithmTransformationReduce(bool isSource) : CGenericAlgorithmTransformation(isSource) {} |
---|
| 18 | virtual ~CAlgorithmTransformationReduce() {}; |
---|
| 19 | virtual void apply(int dimBefore, int dimAfter, const CArray<double,1>& dataIn, CArray<double,1>& dataOut); |
---|
[2267] | 20 | virtual void computeRecvElement(shared_ptr<CLocalView> srcView, shared_ptr<CLocalView> dstView) ; |
---|
[1999] | 21 | |
---|
| 22 | protected: |
---|
[2267] | 23 | virtual void computeAlgorithm(shared_ptr<CLocalView> srcView, shared_ptr<CLocalView> dstView) ; |
---|
[1999] | 24 | |
---|
| 25 | //! Map between global index of destination element and source element |
---|
| 26 | EReduction operator_ ; |
---|
| 27 | TransformationIndexMap transformationMapping_; |
---|
[2267] | 28 | shared_ptr<CReduceTransformConnector> reduceTransformConnector_ ; |
---|
[1999] | 29 | bool detectMissingValue_=true ; |
---|
| 30 | bool eliminateRedondantSrc_ = true ; |
---|
| 31 | }; |
---|
| 32 | |
---|
| 33 | } |
---|
| 34 | #endif //__XIOS_ALGORITHM_TRANSFORMATION_REDUCE_HPP__ |
---|
Note: See
TracBrowser
for help on using the repository browser.