Ignore:
Timestamp:
07/05/16 15:59:16 (8 years ago)
Author:
mhnguyen
Message:

Correcting a bug in transformation_selector

+) Make sure transformation selector chose a correct transformation
+) Correct a bug of updating transformation value

Test
+) On Curie
+) All test pass

File:
1 edited

Legend:

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

    r888 r889  
    3434  }; 
    3535 
     36protected: 
     37  enum TransformationType { 
     38    special = 0, normal = 1 
     39  }; 
     40 
    3641public: 
    3742  /** Default constructor */ 
    38   CGridTransformationSelector(CGrid* destination, CGrid* source); 
     43  CGridTransformationSelector(CGrid* destination, CGrid* source, TransformationType type = normal); 
    3944  virtual ~CGridTransformationSelector(); 
    4045 
     
    4954  void initializeAxisAlgorithms(int axisPositionInGrid); 
    5055  void initializeScalarAlgorithms(int scalarPositionInGrid); 
    51   void initializeTransformations(); 
     56  void initializeTransformations(TransformationType type); 
    5257  void selectAlgo(int elementPositionInGrid, ETranformationType transType, int transformationOrder, AlgoType algo); 
    5358  bool isSpecialTransformation(ETranformationType transType); 
Note: See TracChangeset for help on using the changeset viewer.