Last change
on this file since 2283 was
2026,
checked in by yushan, 4 years ago
|
Graph intermediate commit to a tmp branch.
|
-
Property svn:executable set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | #ifndef __XIOS_ALGORITHM_TRANSFORMATION_TRANSFER_HPP__ |
---|
2 | #define __XIOS_ALGORITHM_TRANSFORMATION_TRANSFER_HPP__ |
---|
3 | |
---|
4 | #include "generic_algorithm_transformation.hpp" |
---|
5 | #include "transfer_transform_connector.hpp" |
---|
6 | #include "array_new.hpp" |
---|
7 | |
---|
8 | namespace xios |
---|
9 | { |
---|
10 | |
---|
11 | class CAlgorithmTransformationTransfer : public CGenericAlgorithmTransformation |
---|
12 | { |
---|
13 | public: |
---|
14 | |
---|
15 | CAlgorithmTransformationTransfer(bool isSource) : CGenericAlgorithmTransformation(isSource) {} |
---|
16 | virtual ~CAlgorithmTransformationTransfer() {}; |
---|
17 | virtual void apply(int dimBefore, int dimAfter, const CArray<double,1>& dataIn, CArray<double,1>& dataOut); |
---|
18 | virtual void computeRecvElement(CLocalView* srcView, CLocalView* dstView) ; |
---|
19 | virtual StdString getAlgoName() {return "\\nCAlgorithm transformation Transfer";} |
---|
20 | |
---|
21 | protected: |
---|
22 | virtual void computeAlgorithm(CLocalView* srcView, CLocalView* dstView) ; |
---|
23 | |
---|
24 | //! Map between global index of destination element and source element |
---|
25 | unordered_map<int,int> transformationMapping_; |
---|
26 | CTransferTransformConnector* transferTransformConnector_ ; |
---|
27 | }; |
---|
28 | |
---|
29 | } |
---|
30 | #endif //__XIOS_ALGORITHM_TRANSFORMATION_TRANSFER_HPP__ |
---|
Note: See
TracBrowser
for help on using the repository browser.