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_interpolate.hpp

    r856 r933  
    1111 
    1212#include "domain_algorithm_transformation.hpp" 
    13 #include "domain.hpp" 
    14 #include "interpolate_domain.hpp" 
     13#include "transformation.hpp" 
    1514 
    1615namespace xios { 
     16 
     17class CDomain; 
     18class CInterpolateDomain; 
     19 
    1720/*! 
    1821  \class CDomainAlgorithmInterpolate 
     
    2629  virtual ~CDomainAlgorithmInterpolate() {} 
    2730 
     31  static bool registerTrans(); 
    2832protected: 
    2933  void computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs); 
     
    3943  CInterpolateDomain* interpDomain_; 
    4044 
     45private: 
     46 
     47  static CGenericAlgorithmTransformation* create(CGrid* gridDst, CGrid* gridSrc, 
     48                                                CTransformation<CDomain>* transformation, 
     49                                                int elementPositionInGrid, 
     50                                                std::map<int, int>& elementPositionInGridSrc2ScalarPosition, 
     51                                                std::map<int, int>& elementPositionInGridSrc2AxisPosition, 
     52                                                std::map<int, int>& elementPositionInGridSrc2DomainPosition, 
     53                                                std::map<int, int>& elementPositionInGridDst2ScalarPosition, 
     54                                                std::map<int, int>& elementPositionInGridDst2AxisPosition, 
     55                                                std::map<int, int>& elementPositionInGridDst2DomainPosition); 
    4156}; 
    4257 
Note: See TracChangeset for help on using the changeset viewer.