Ignore:
Timestamp:
06/22/15 13:36:17 (9 years ago)
Author:
mhnguyen
Message:

Implementing generic transformation algorithm (local commit)

+) Implement 3 important classes:

-gridTransformation to read transformation info from grid and interface with the rest of XIOS
-transformationMapping to be in charge of sending/receiving transformation info among clients
-transformationAlgorithm to represent various algorithms

+) Make some change on field to use the new classes

Test
+) Only test_new_features with inversed axis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/grid.hpp

    • Property svn:executable set to *
    r619 r620  
    1717#include "utils.hpp" 
    1818#include "transformation_enum.hpp" 
    19 #include "visitor.hpp" 
     19#include "grid_transformation.hpp" 
    2020 
    2121namespace xios { 
     
    3232   class CServerDistributionDescription; 
    3333   class CClientServerMapping; 
     34   class CGridTransformation; 
    3435 
    3536   ///-------------------------------------------------------------- 
     
    176177         std::vector<int> getGlobalDimension(); 
    177178         bool isScalarGrid() const; 
     179         std::vector<int> getAxisPositionInGrid() const; 
    178180 
    179181         bool doGridHaveDataToWrite(); 
     
    182184 
    183185         const CDistributionServer* getDistributionServer() const; 
     186         const CDistributionClient* getDistributionClient() const; 
     187         CGridTransformation* getTransformations(); 
    184188 
    185189         void transformGrid(CGrid* transformedGrid); 
    186190         bool isTransformed(); 
    187191         void setTransformed(); 
    188          EElementType getGridElementType(); 
    189  
    190          std::vector<ETransformationType> getTransformations(); 
    191          const std::vector<CGenericAlgorithm*>& getTransformationAlgo(); 
     192//         EElementType getGridElementType(); 
     193// 
     194//         std::vector<ETransformationType> getTransformations(); 
     195//         const std::vector<CGenericAlgorithm*>& getTransformationAlgo(); 
    192196 
    193197      public: 
     
    207211         void checkMask(void) ; 
    208212 
    209          std::vector<CGenericAlgorithm*> algorithms_; 
    210213      private: 
    211214       template<int N> 
     
    252255 
    253256 
    254         std::vector<ETransformationType> transformations_; 
     257//        std::vector<ETransformationType> transformations_; 
    255258        bool isTransformed_; 
     259        std::vector<int> axisPositionInGrid_; 
     260        CGridTransformation* transformations_; 
    256261   }; // class CGrid 
    257262 
Note: See TracChangeset for help on using the changeset viewer.