Ignore:
Timestamp:
09/22/16 10:58:32 (4 years ago)
Author:
mhnguyen
Message:

Improving transformation selection. Instead of modifying directly grid_transformation
we only need to register a new transformation with the framework

+) Update all transformations with this new method

Test
+) On Curie
+) Basic tests pass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/transformation/axis_algorithm_extract_domain.hpp

    r918 r933  
    1111 
    1212#include "axis_algorithm_transformation.hpp" 
     13#include "transformation.hpp" 
    1314 
    1415namespace xios { 
     
    1819class CExtractDomainToAxis; 
    1920class CReductionAlgorithm; 
     21 
    2022 
    2123/*! 
     
    3638  virtual ~CAxisAlgorithmExtractDomain(); 
    3739 
     40  static bool registerTrans(); 
    3841protected: 
    3942  enum ExtractDirection { 
     
    5154  CReductionAlgorithm* reduction_; 
    5255 
     56private: 
     57  static CGenericAlgorithmTransformation* create(CGrid* gridDst, CGrid* gridSrc, 
     58                                                CTransformation<CAxis>* transformation, 
     59                                                int elementPositionInGrid, 
     60                                                std::map<int, int>& elementPositionInGridSrc2ScalarPosition, 
     61                                                std::map<int, int>& elementPositionInGridSrc2AxisPosition, 
     62                                                std::map<int, int>& elementPositionInGridSrc2DomainPosition, 
     63                                                std::map<int, int>& elementPositionInGridDst2ScalarPosition, 
     64                                                std::map<int, int>& elementPositionInGridDst2AxisPosition, 
     65                                                std::map<int, int>& elementPositionInGridDst2DomainPosition); 
    5366}; 
    5467 
Note: See TracChangeset for help on using the changeset viewer.