Last change
on this file since 2001 was
1999,
checked in by ymipsl, 3 years ago
|
Adapt transformation algorithm to new infrastructure (on going...)
YM
|
-
Property svn:executable set to
*
|
File size:
988 bytes
|
Rev | Line | |
---|
[1999] | 1 | #ifndef __XIOS_GRID_ALGORITHM_TRANSFORMATION_HPP__ |
---|
| 2 | #define __XIOS_GRID_ALGORITHM_TRANSFORMATION_HPP__ |
---|
| 3 | |
---|
| 4 | #include "grid_transform_connector.hpp" |
---|
| 5 | #include <map> |
---|
| 6 | #include "array_new.hpp" |
---|
| 7 | #include "local_view.hpp" |
---|
| 8 | |
---|
| 9 | namespace xios |
---|
| 10 | { |
---|
| 11 | class CGrid; |
---|
| 12 | class CGenericAlgorithmTransformation ; |
---|
| 13 | |
---|
| 14 | /*! |
---|
| 15 | \class CGenericAlgorithmTransformation |
---|
| 16 | This class defines the interface for all other inherited algorithms class |
---|
| 17 | */ |
---|
| 18 | class CGridAlgorithm |
---|
| 19 | { |
---|
| 20 | public: |
---|
| 21 | CGridAlgorithm(CGrid* gridSrc, CGrid* gridDst, int pos, CGenericAlgorithmTransformation* algo) ; |
---|
| 22 | virtual void computeAlgorithm(void) ; |
---|
| 23 | |
---|
| 24 | void apply(const CArray<double,1>& dataIn, CArray<double,1>& dataOut) ; |
---|
| 25 | |
---|
| 26 | private: |
---|
| 27 | CGenericAlgorithmTransformation* algorithm_=nullptr ; |
---|
| 28 | CGridTransformConnector* gridTransformConnector_=nullptr ; |
---|
| 29 | CGrid* gridSrc_ = nullptr ; |
---|
| 30 | CGrid* gridDst_ = nullptr ; |
---|
| 31 | int pos_ ; |
---|
| 32 | int dimBefore_=1 ; |
---|
| 33 | int dimAfter_=1 ; |
---|
| 34 | |
---|
| 35 | }; |
---|
| 36 | |
---|
| 37 | } |
---|
| 38 | #endif // __XIOS_GRID_ALGORITHM_TRANSFORMATION_HPP__ |
---|
Note: See
TracBrowser
for help on using the repository browser.