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/domain_algorithm_zoom.hpp

    r827 r933  
    1111 
    1212#include "domain_algorithm_transformation.hpp" 
    13 #include "zoom_domain.hpp" 
    14 #include "domain.hpp" 
     13#include "transformation.hpp" 
    1514 
    1615namespace xios { 
     16 
     17class CDomain; 
     18class CZoomDomain; 
     19 
    1720/*! 
    1821  \class CDomainAlgorithmZoom 
     
    2831  virtual ~CDomainAlgorithmZoom() {} 
    2932 
     33  static bool registerTrans(); 
    3034protected: 
    3135  void computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs); 
     
    4751  int zoomNi_; 
    4852  int zoomNj_; 
     53 
     54private: 
     55 
     56  static CGenericAlgorithmTransformation* create(CGrid* gridDst, CGrid* gridSrc, 
     57                                                CTransformation<CDomain>* transformation, 
     58                                                int elementPositionInGrid, 
     59                                                std::map<int, int>& elementPositionInGridSrc2ScalarPosition, 
     60                                                std::map<int, int>& elementPositionInGridSrc2AxisPosition, 
     61                                                std::map<int, int>& elementPositionInGridSrc2DomainPosition, 
     62                                                std::map<int, int>& elementPositionInGridDst2ScalarPosition, 
     63                                                std::map<int, int>& elementPositionInGridDst2AxisPosition, 
     64                                                std::map<int, int>& elementPositionInGridDst2DomainPosition); 
    4965}; 
    5066 
Note: See TracChangeset for help on using the changeset viewer.