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

Implementing the first prototype of filter

+) Create new class filter
+) Implement class for specific algorithm
+) Implement inversing algorithm

Test
+) On Curie
+) Grid with one axis: passed

File:
1 edited

Legend:

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

    r600 r619  
    1616#include "client_server_mapping.hpp" 
    1717#include "utils.hpp" 
     18#include "transformation_enum.hpp" 
     19#include "visitor.hpp" 
    1820 
    1921namespace xios { 
     
    5860         } ; 
    5961 
     62         enum EElementType 
     63         { 
     64           GRID_ONLY_AXIS, GRID_ONLY_DOMAIN, GRID_AXIS_DOMAIN 
     65         }; 
     66 
    6067         /// Constructeurs /// 
    6168         CGrid(void); 
     
    140147         void solveAxisRef(bool checkAtt); 
    141148         void solveDomainAxisRefInheritance(bool apply = true); 
     149         void solveTransformations(); 
    142150 
    143151         void sendAddDomain(const std::string& id=""); 
     
    175183         const CDistributionServer* getDistributionServer() const; 
    176184 
     185         void transformGrid(CGrid* transformedGrid); 
     186         bool isTransformed(); 
     187         void setTransformed(); 
     188         EElementType getGridElementType(); 
     189 
     190         std::vector<ETransformationType> getTransformations(); 
     191         const std::vector<CGenericAlgorithm*>& getTransformationAlgo(); 
     192 
    177193      public: 
    178194 
     
    191207         void checkMask(void) ; 
    192208 
     209         std::vector<CGenericAlgorithm*> algorithms_; 
    193210      private: 
    194211       template<int N> 
     
    214231        CAxisGroup* getVirtualAxisGroup() const; 
    215232        CDomainGroup* getVirtualDomainGroup() const; 
     233 
     234 
     235        void setTransformationAlgorithms(); 
     236 
    216237        std::vector<int> globalDim_; 
    217238      private: 
     
    229250        std::vector<int> connectedServerRank_; 
    230251        bool isDataDistributed_; 
     252 
     253 
     254        std::vector<ETransformationType> transformations_; 
     255        bool isTransformed_; 
    231256   }; // class CGrid 
    232257 
Note: See TracChangeset for help on using the changeset viewer.